mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
avvidenc: Close reference context before freeing it
Otherwise we'll leak some memory. See https://gitlab.freedesktop.org/gstreamer/gst-libav/merge_requests/32
This commit is contained in:
parent
456e812c28
commit
4d3cd3983a
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ gst_ffmpegvidenc_finalize (GObject * object)
|
|||
/* clean up remaining allocated data */
|
||||
av_frame_free (&ffmpegenc->picture);
|
||||
gst_ffmpeg_avcodec_close (ffmpegenc->context);
|
||||
gst_ffmpeg_avcodec_close (ffmpegenc->refcontext);
|
||||
av_free (ffmpegenc->context);
|
||||
av_free (ffmpegenc->refcontext);
|
||||
|
||||
|
|
Loading…
Reference in a new issue