Browse Source

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
tags/v0.5
Martin Storsjö Andreas Öman 17 years ago
parent
commit
916ff02261
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/libgsm.c

+ 1
- 0
libavcodec/libgsm.c 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;


Loading…
Cancel
Save