checks: Fix string leaks in the new childproxy test
authorJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 01:20:51 +0000 (02:20 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 01:20:51 +0000 (02:20 +0100)
tests/check/gst/gstchildproxy.c

index 43370ff..a4249ff 100644 (file)
@@ -31,6 +31,7 @@ GST_START_TEST (test_get)
 
   gst_child_proxy_get (GST_OBJECT (pipeline), "name", &name, NULL);
   fail_if (g_strcmp0 ("foo", name));
+  g_free (name);
 
   gst_object_unref (pipeline);
 }
@@ -52,6 +53,7 @@ GST_START_TEST (test_child_get)
 
   gst_child_proxy_get (GST_OBJECT (pipeline), "src::name", &name, NULL);
   fail_if (g_strcmp0 ("src", name));
+  g_free (name);
 
   gst_object_unref (pipeline);
 }