diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2015-11-23 10:31:39 +0900 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-11-23 12:05:26 -0300 |
commit | 839a72f92ca23de39d31aa36839f85a9fb7d6356 (patch) | |
tree | 8cf3a77180f3452db0710210874e79e4a15e1b26 /ext/libav | |
parent | 598f71d12cef1894a7ff5e7012dac6f14adae364 (diff) | |
download | gst-libav-839a72f92ca23de39d31aa36839f85a9fb7d6356.tar.gz |
avviddec: Fix structure memory leak
gst_structure_copy already takes a reference for config_copy.
No need to take another reference while setting it to buffer pool
https://bugzilla.gnome.org/show_bug.cgi?id=758512
Diffstat (limited to 'ext/libav')
-rw-r--r-- | ext/libav/gstavviddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 5269b06..6bcb363 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -1854,7 +1854,7 @@ gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query) config_copy); /* FIXME validate and retry */ - if (gst_buffer_pool_set_config (pool, gst_structure_copy (config_copy))) { + if (gst_buffer_pool_set_config (pool, config_copy)) { GstFlowReturn ret; GstBuffer *tmp; |