Commit 89f0fead authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 51b19321
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment