diff huffyuv.c @ 10412:9d31db7bec63 libavcodec

Release unreleased buffers found by make test.
author cehoyos
date Fri, 16 Oct 2009 14:50:08 +0000
parents 6009feb54020
children 84d50ce146f7
line wrap: on
line diff
--- a/huffyuv.c	Fri Oct 16 12:35:49 2009 +0000
+++ b/huffyuv.c	Fri Oct 16 14:50:08 2009 +0000
@@ -1185,6 +1185,9 @@
     HYuvContext *s = avctx->priv_data;
     int i;
 
+    if (s->picture.data[0])
+        avctx->release_buffer(avctx, &s->picture);
+
     common_end(s);
     av_freep(&s->bitstream_buffer);