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 4ccbd0ea34bf47b79c3680e3bdb1fe690d17f640..513f51845abfe0979d899dc6dce3e6771fbb035c 100644 (file)
@@ -330,7 +330,7 @@ static int fourxm_read_close(AVFormatContext *s)
 {
     FourxmDemuxContext *fourxm = s->priv_data;
 
-    av_free(fourxm->tracks);
+    av_freep(&fourxm->tracks);
 
     return 0;
 }