mpeg2dec: fix memory leak
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 24 Mar 2015 12:50:43 +0000 (12:50 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 24 Mar 2015 12:51:36 +0000 (12:51 +0000)
CID #1291630

ext/mpeg2dec/gstmpeg2dec.c

index 4a6a6e4..3ba2880 100644 (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;