changeset 8124:4070139042c7 libavcodec

Fix memory leak in libgsm wrapper. Patch by Martin Storsj, martin at martin dot st
author andoma
date Mon, 10 Nov 2008 20:02:00 +0000
parents cd756806be02
children a5e135f5bf32
files libgsm.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgsm.c	Sun Nov 09 12:00:47 2008 +0000
+++ b/libgsm.c	Mon Nov 10 20:02:00 2008 +0000
@@ -89,6 +89,7 @@
 }
 
 static av_cold int libgsm_close(AVCodecContext *avctx) {
+    av_freep(&avctx->coded_frame);
     gsm_destroy(avctx->priv_data);
     avctx->priv_data = NULL;
     return 0;