diff libgsm.c @ 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 85ab7655ad4d
children e9d9d946f213
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;