Browse code

100l: av_freep() needs the address of the pointer

Originally committed as revision 24613 to svn://svn.ffmpeg.org/ffmpeg/trunk

Aurelien Jacobs authored on 2010/07/31 08:41:12
Showing 1 changed files
... ...
@@ -1295,7 +1295,7 @@ static int avi_read_close(AVFormatContext *s)
1295 1295
         AVIStream *ast = st->priv_data;
1296 1296
         av_free(st->codec->palctrl);
1297 1297
         if (ast->sub_ctx) {
1298
-            av_freep(ast->sub_ctx->pb);
1298
+            av_freep(&ast->sub_ctx->pb);
1299 1299
             av_close_input_stream(ast->sub_ctx);
1300 1300
         }
1301 1301
         av_free(ast->sub_buffer);