summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatya Prakash Gupta <sp.gupta@samsung.com>2017-07-17 18:36:36 +0530
committerSebastian Dröge <sebastian@centricular.com>2017-07-25 11:27:51 +0300
commit4988729756e9792a9e13f09ca1d8616e3be3b6e9 (patch)
treeb2b5954363805f7c6ac989648b1fa3178b0317ba
parent0346233b9bb9abc6cbbfbee80ea5066fe282b883 (diff)
omx: Possible Memory leak in gst_caps_from_string
https://bugzilla.gnome.org/show_bug.cgi?id=784978
-rw-r--r--omx/gstomx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 214f618..0237f3c 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -2611,6 +2611,7 @@ _class_init (gpointer g_class, gpointer data)
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, caps);
g_free (template_caps);
gst_element_class_add_pad_template (element_class, templ);
+ gst_caps_unref (caps);
}
err = NULL;
@@ -2637,6 +2638,7 @@ _class_init (gpointer g_class, gpointer data)
templ = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, caps);
g_free (template_caps);
gst_element_class_add_pad_template (element_class, templ);
+ gst_caps_unref (caps);
}
if ((hacks =