projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
456e812
)
avvidenc: Close reference context before freeing it
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 15 Jul 2019 07:42:42 +0000
(10:42 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 15 Jul 2019 07:42:42 +0000
(10:42 +0300)
Otherwise we'll leak some memory.
See https://gitlab.freedesktop.org/gstreamer/gst-libav/merge_requests/32
ext/libav/gstavvidenc.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavvidenc.c
b/ext/libav/gstavvidenc.c
index
621d00b
..
5193a01
100644
(file)
--- a/
ext/libav/gstavvidenc.c
+++ b/
ext/libav/gstavvidenc.c
@@
-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);