Commit 839a72f9 authored by Vineeth T M's avatar Vineeth T M Committed by Thiago Santos

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
parent 598f71d1
......@@ -1854,7 +1854,7 @@ gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
/* 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment