gstobject: fix leak when naming parented object
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 Aug 2010 08:56:30 +0000 (10:56 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 Aug 2010 08:59:45 +0000 (10:59 +0200)
gst/gstobject.c

index 11dd6b530f6592deac176037ffbad2bdd5cacc97..7cdb5dc5e00eb6c007fb431f3982822f65efd039 100644 (file)
@@ -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;