Prefer av_freep() over av_free() for variables in the context for safety.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Jan 2009 22:21:28 +0000 (22:21 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Jan 2009 22:21:28 +0000 (22:21 +0000)
Originally committed as revision 16838 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/4xm.c

index 4ccbd0e..513f518 100644 (file)
@@ -330,7 +330,7 @@ static int fourxm_read_close(AVFormatContext *s)
 {
     FourxmDemuxContext *fourxm = s->priv_data;
 
 {
     FourxmDemuxContext *fourxm = s->priv_data;
 
-    av_free(fourxm->tracks);
+    av_freep(&fourxm->tracks);
 
     return 0;
 }
 
     return 0;
 }