Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-15 17:43:42 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 17:43:42 +0300
commit89f0feadc2b339d1b9af7be04c75d4e54c3ef0cf (patch)
tree36a94bf18c37f4a5790373333330d5b4f71a3b6a /libavformat/assenc.c
parent51b193214dea63762d85a46913d70e602888cad0 (diff)
avformat/assenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/assenc.c')
-rw-r--r--libavformat/assenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/assenc.c b/libavformat/assenc.c
index bde1096269..079991d14e 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;