Fix memory leak in libgsm wrapper.

Patch by Martin Storsjö, martin at martin dot st

Originally committed as revision 15798 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2008-11-10 20:02:00 +00:00 committed by Andreas Öman
parent 2ae1a9b264
commit 916ff02261
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ static av_cold int libgsm_init(AVCodecContext *avctx) {
}
static av_cold int libgsm_close(AVCodecContext *avctx) {
av_freep(&avctx->coded_frame);
gsm_destroy(avctx->priv_data);
avctx->priv_data = NULL;
return 0;