Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
89f0feadc2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/assenc.c

+ 1
- 1
libavformat/assenc.c View File

@@ -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…
Cancel
Save