[FFmpeg-cvslog] avformat/assenc: Use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Mon Dec 15 16:01:34 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 15 15:43:42 2014 +0100| [89f0feadc2b339d1b9af7be04c75d4e54c3ef0cf] | committer: Michael Niedermayer

avformat/assenc: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/assenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/assenc.c b/libavformat/assenc.c
index bde1096..079991d 100644
--- a/libavformat/assenc.c
+++ b/libavformat/assenc.c
@@ -84,7 +84,7 @@ static void purge_dialogues(AVFormatContext *s, int force)
         avio_printf(s->pb, "Dialogue: %s\r\n", dialogue->line);
         if (dialogue == ass->last_added_dialogue)
             ass->last_added_dialogue = next;
-        av_free(dialogue->line);
+        av_freep(&dialogue->line);
         av_free(dialogue);
         if (next)
             next->prev = NULL;



More information about the ffmpeg-cvslog mailing list