mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
avaudenc: fix memory leak of refcontext after finalize.
This commit is contained in:
parent
2596e5bd6f
commit
456e812c28
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@ gst_ffmpegaudenc_finalize (GObject * object)
|
|||
/* clean up remaining allocated data */
|
||||
av_frame_free (&ffmpegaudenc->frame);
|
||||
gst_ffmpeg_avcodec_close (ffmpegaudenc->context);
|
||||
gst_ffmpeg_avcodec_close (ffmpegaudenc->refcontext);
|
||||
av_free (ffmpegaudenc->context);
|
||||
av_free (ffmpegaudenc->refcontext);
|
||||
|
||||
|
|
Loading…
Reference in a new issue