lavd/sdl: do not manually free window_title and icon_title fields
They are automatically freed when calling av_write_trailer(). Simplify.
This commit is contained in:
parent
8446bb33d1
commit
25c675b5a7
@ -57,9 +57,6 @@ static int sdl_write_trailer(AVFormatContext *s)
|
|||||||
{
|
{
|
||||||
SDLContext *sdl = s->priv_data;
|
SDLContext *sdl = s->priv_data;
|
||||||
|
|
||||||
av_freep(&sdl->window_title);
|
|
||||||
av_freep(&sdl->icon_title);
|
|
||||||
|
|
||||||
if (sdl->overlay) {
|
if (sdl->overlay) {
|
||||||
SDL_FreeYUVOverlay(sdl->overlay);
|
SDL_FreeYUVOverlay(sdl->overlay);
|
||||||
sdl->overlay = NULL;
|
sdl->overlay = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user