summaryrefslogtreecommitdiff
path: root/gst/gstdebugutils.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-07-12 17:01:23 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-07-16 16:44:11 +0200
commit4dca9a79a2b4fb1173ca9ee8bd2dea22ed95a951 (patch)
tree92ad7ce76fc6beb1396700fe8190ed939a4fa5fd /gst/gstdebugutils.c
parentc7aa4e6a5fc344bcdfaa4fee8ccf2741ab28886e (diff)
debugutils: Unref pad template after use
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733121
Diffstat (limited to 'gst/gstdebugutils.c')
-rw-r--r--gst/gstdebugutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c
index 7b3ebf9c1..96901c350 100644
--- a/gst/gstdebugutils.c
+++ b/gst/gstdebugutils.c
@@ -154,6 +154,7 @@ debug_dump_pad (GstPad * pad, const gchar * color_name,
style_name = "filled,solid";
if ((pad_templ = gst_pad_get_pad_template (pad))) {
presence = GST_PAD_TEMPLATE_PRESENCE (pad_templ);
+ gst_object_unref (pad_templ);
if (presence == GST_PAD_SOMETIMES) {
style_name = "filled,dotted";
} else if (presence == GST_PAD_REQUEST) {