changeset 10395:d02739e638cf libavcodec

Add missing release_buffer on close
author reimar
date Tue, 13 Oct 2009 18:28:37 +0000
parents 81cf22a16ab3
children 2bb3882075b6
files 4xm.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;
 }