diff indeo5.c @ 11255:f65b3f7186b5 libavcodec

10l trocadero: Indeo 5 decoder did not free custom VLCs for macroblock and block decoding at exit, so prevent that memory leak now.
author kostya
date Tue, 23 Feb 2010 07:41:29 +0000
parents b75449aaea3e
children d617766bf19b
line wrap: on
line diff
--- a/indeo5.c	Tue Feb 23 07:07:54 2010 +0000
+++ b/indeo5.c	Tue Feb 23 07:41:29 2010 +0000
@@ -860,6 +860,9 @@
 
     ff_ivi_free_buffers(&ctx->planes[0]);
 
+    if (ctx->mb_vlc_cust.table)
+        free_vlc(&ctx->mb_vlc_cust);
+
     if (ctx->frame.data[0])
         avctx->release_buffer(avctx, &ctx->frame);