OSDN Git Service

Use av_freep() in ff_parse_close().
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Oct 2008 09:02:55 +0000 (09:02 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Oct 2008 09:02:55 +0000 (09:02 +0000)
Originally committed as revision 15654 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/parser.c

index 7262b92..460693f 100644 (file)
@@ -291,7 +291,7 @@ void ff_parse_close(AVCodecParserContext *s)
 {
     ParseContext *pc = s->priv_data;
 
-    av_free(pc->buffer);
+    av_freep(&pc->buffer);
 }
 
 void ff_parse1_close(AVCodecParserContext *s)