debugutils: Unref pad template after use

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733121
This commit is contained in:
Sebastian Rasmussen 2014-07-12 17:01:23 +02:00 committed by Sebastian Dröge
parent c7aa4e6a5f
commit 4dca9a79a2

View file

@ -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) {