avaudenc: fix memory leak of refcontext after finalize.

This commit is contained in:
Knut Andre Tidemann 2019-07-12 14:41:18 +02:00
parent 2596e5bd6f
commit 456e812c28

View file

@ -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);