summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-07-24 22:02:58 +0200
committerThiago Santos <ts.santos@osg.sisa.samsung.com>2014-07-28 08:41:27 -0300
commit08870205811e5b88cdcb2efc89e4130954218b8d (patch)
tree7747e7e96933b55f4256973ab62cb5e5ef1618d7
parent35fc309544099b52a46267ffbf85c1d6a3fcf2b5 (diff)
parse: Unref reference to enclosing bins
Previously all reference to enclosing bins of an element were leaked when doing delaying setting a property. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733697
-rw-r--r--gst/parse/grammar.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
index 3f0513ee3..53ee15bad 100644
--- a/gst/parse/grammar.y
+++ b/gst/parse/grammar.y
@@ -297,9 +297,12 @@ static void gst_parse_add_delayed_set (GstElement *element, gchar *name, gchar *
gst_parse_add_delayed_set(parent, sub_name, value_str);
g_free (sub_name);
}
+ gst_object_unref (parent);
parent = child;
current++;
}
+ if (parent)
+ gst_object_unref (parent);
g_strfreev (names);
}
}