changeset 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 1fd083c620d6
children daf951f32697
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Fri Jul 04 20:32:04 2003 +0000
+++ b/mpegvideo.c	Sat Jul 05 08:31:08 2003 +0000
@@ -476,6 +476,9 @@
 {
     int i;
 
+    av_freep(&s->parse_context.buffer);
+    s->parse_context.buffer_size=0;
+
     av_freep(&s->mb_type);
     av_freep(&s->p_mv_table_base);
     av_freep(&s->b_forw_mv_table_base);