Browse Source

indeo3: release buffer in indeo3_decode_end()

Fix leak.
Stefano Sabatini 14 years ago
parent
commit
7f58eb3c2b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libavcodec/indeo3.c

+ 3 - 0
libavcodec/indeo3.c

@@ -1137,6 +1137,9 @@ static av_cold int indeo3_decode_end(AVCodecContext *avctx)
 
     iv_free_func(s);
 
+    if (s->frame.data[0])
+        avctx->release_buffer(avctx, &s->frame);
+
     return 0;
 }