diff 4xm.c @ 10395:d02739e638cf libavcodec

Add missing release_buffer on close
author reimar
date Tue, 13 Oct 2009 18:28:37 +0000
parents ef6e027092cc
children 8c327647b2a4
line wrap: on
line diff
--- a/4xm.c	Tue Oct 13 18:15:57 2009 +0000
+++ b/4xm.c	Tue Oct 13 18:28:37 2009 +0000
@@ -832,6 +832,10 @@
         f->cfrm[i].allocated_size= 0;
     }
     free_vlc(&f->pre_vlc);
+    if(f->current_picture.data[0])
+        avctx->release_buffer(avctx, &f->current_picture);
+    if(f->last_picture.data[0])
+        avctx->release_buffer(avctx, &f->last_picture);
 
     return 0;
 }