[FFmpeg-cvslog] r16838 - trunk/libavformat/4xm.c

michael subversion
Tue Jan 27 23:21:28 CET 2009


Author: michael
Date: Tue Jan 27 23:21:28 2009
New Revision: 16838

Log:
Prefer av_freep() over av_free() for variables in the context for saftey.

Modified:
   trunk/libavformat/4xm.c

Modified: trunk/libavformat/4xm.c
==============================================================================
--- trunk/libavformat/4xm.c	Tue Jan 27 23:20:05 2009	(r16837)
+++ trunk/libavformat/4xm.c	Tue Jan 27 23:21:28 2009	(r16838)
@@ -330,7 +330,7 @@ static int fourxm_read_close(AVFormatCon
 {
     FourxmDemuxContext *fourxm = s->priv_data;
 
-    av_free(fourxm->tracks);
+    av_freep(&fourxm->tracks);
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list