[FFmpeg-cvslog] lavd/sdl: do not manually free window_title and icon_title fields

Stefano Sabatini git at videolan.org
Sun Nov 24 19:40:47 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Nov 24 19:29:04 2013 +0100| [25c675b5a744134b334d438e5c47412a02fc4ff1] | committer: Stefano Sabatini

lavd/sdl: do not manually free window_title and icon_title fields

They are automatically freed when calling av_write_trailer(). Simplify.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25c675b5a744134b334d438e5c47412a02fc4ff1
---

 libavdevice/sdl.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c
index e708dfd..0210ad2 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;



More information about the ffmpeg-cvslog mailing list