avformat/dv: Use av_freep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 23:16:49 +0000 (00:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 23:38:05 +0000 (00:38 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/dv.c

index 4b8593d..0a893f4 100644 (file)
@@ -580,7 +580,7 @@ static int dv_read_seek(AVFormatContext *s, int stream_index,
 static int dv_read_close(AVFormatContext *s)
 {
     RawDVContext *c = s->priv_data;
-    av_free(c->dv_demux);
+    av_freep(&c->dv_demux);
     return 0;
 }