Commit ad85386a authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

gstobject: fix leak when naming parented object

parent 904c1a7a
......@@ -645,6 +645,7 @@ gst_object_set_name_default (GstObject * object)
had_parent:
{
g_free (name);
GST_WARNING ("parented objects can't be renamed");
GST_OBJECT_UNLOCK (object);
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment