1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

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

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;