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:
parent
2ae1a9b264
commit
916ff02261
@ -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…
x
Reference in New Issue
Block a user