Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
8123:cd756806be02 | 8124:4070139042c7 |
---|---|
87 | 87 |
88 return 0; | 88 return 0; |
89 } | 89 } |
90 | 90 |
91 static av_cold int libgsm_close(AVCodecContext *avctx) { | 91 static av_cold int libgsm_close(AVCodecContext *avctx) { |
92 av_freep(&avctx->coded_frame); | |
92 gsm_destroy(avctx->priv_data); | 93 gsm_destroy(avctx->priv_data); |
93 avctx->priv_data = NULL; | 94 avctx->priv_data = NULL; |
94 return 0; | 95 return 0; |
95 } | 96 } |
96 | 97 |