xmvdemux: prefer av_freep() to deallocate audio stream structs.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Apr 2012 17:42:44 +0000 (19:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Apr 2012 17:42:44 +0000 (19:42 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/xmv.c

index 73c666d..5fcc540 100644 (file)
@@ -546,7 +546,7 @@ static int xmv_read_close(AVFormatContext *s)
 {
     XMVDemuxContext *xmv = s->priv_data;
 
-    av_free(xmv->audio);
+    av_freep(&xmv->audio);
 
     return 0;
 }