[Bug 746887] gstmpeg2dec: fix a couple of leaks.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Mar 27 06:45:33 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=746887

--- Comment #3 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> ---
Review of attachment 300447:
 --> (https://bugzilla.gnome.org/review?bug=746887&attachment=300447)

Luis fixed that already.

commit 31bf54a076d7ee2a938259b8c4e9358e024a12e6
Author: Luis de Bethencourt <luis.bg at samsung.com>
Date:   Tue Mar 24 12:50:43 2015 +0000

    mpeg2dec: fix memory leak

    CID #1291630

diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c
index 4a6a6e4..3ba2880 100644
--- a/ext/mpeg2dec/gstmpeg2dec.c
+++ b/ext/mpeg2dec/gstmpeg2dec.c
@@ -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;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list