mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
avformat/assenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
51b193214d
commit
89f0feadc2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user