comparison mpegvideo.c @ 1344:447b88b784ee libavcodec

memleak fix by (Jake Page <jake at CS dot Stanford dot EDU>) with minor fix by me
author michaelni
date Sat, 05 Jul 2003 08:31:08 +0000
parents 338a2f6e6402
children cfc80b3a4ada
comparison
equal deleted inserted replaced
1343:1fd083c620d6 1344:447b88b784ee
473 473
474 /* init common structure for both encoder and decoder */ 474 /* init common structure for both encoder and decoder */
475 void MPV_common_end(MpegEncContext *s) 475 void MPV_common_end(MpegEncContext *s)
476 { 476 {
477 int i; 477 int i;
478
479 av_freep(&s->parse_context.buffer);
480 s->parse_context.buffer_size=0;
478 481
479 av_freep(&s->mb_type); 482 av_freep(&s->mb_type);
480 av_freep(&s->p_mv_table_base); 483 av_freep(&s->p_mv_table_base);
481 av_freep(&s->b_forw_mv_table_base); 484 av_freep(&s->b_forw_mv_table_base);
482 av_freep(&s->b_back_mv_table_base); 485 av_freep(&s->b_back_mv_table_base);