summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-11-24 19:29:04 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-11-24 19:35:36 +0100
commit25c675b5a744134b334d438e5c47412a02fc4ff1 (patch)
tree93894d6da7589bf6378522ded9f80c22fbc730c5 /libavdevice
parent8446bb33d1d04c9d0e172eb0d87550f129c18754 (diff)
lavd/sdl: do not manually free window_title and icon_title fields
They are automatically freed when calling av_write_trailer(). Simplify.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/sdl.c3
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;