Revision f138fa78

View differences:

libavformat/avidec.c
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);

Also available in: Unified diff