diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-11-24 19:29:04 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-11-24 19:35:36 +0100 |
commit | 25c675b5a744134b334d438e5c47412a02fc4ff1 (patch) | |
tree | 93894d6da7589bf6378522ded9f80c22fbc730c5 | |
parent | 8446bb33d1d04c9d0e172eb0d87550f129c18754 (diff) | |
download | ffmpeg-25c675b5a744134b334d438e5c47412a02fc4ff1.tar.gz |
lavd/sdl: do not manually free window_title and icon_title fields
They are automatically freed when calling av_write_trailer(). Simplify.
-rw-r--r-- | libavdevice/sdl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c index e708dfdf20..0210ad26d9 100644 --- a/libavdevice/sdl.c +++ b/libavdevice/sdl.c @@ -57,9 +57,6 @@ static int sdl_write_trailer(AVFormatContext *s) { SDLContext *sdl = s->priv_data; - av_freep(&sdl->window_title); - av_freep(&sdl->icon_title); - if (sdl->overlay) { SDL_FreeYUVOverlay(sdl->overlay); sdl->overlay = NULL; |