mpeg2dec: fix memory leak

CID #1291630
This commit is contained in:
Luis de Bethencourt 2015-03-24 12:50:43 +00:00
parent d077a3a300
commit 31bf54a076

View file

@ -337,7 +337,7 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
if (!has_videometa) {
dec->downstream_pool = pool;
pool = NULL;
down_config = gst_structure_copy (config);
down_config = config;
config = NULL;
min = 2;
max = 0;