<wingo> i thought _get gave you a copy of the string --- he's right
authorBenjamin Otte <otte@gnome.org>
Wed, 6 Feb 2002 15:02:26 +0000 (15:02 +0000)
committerBenjamin Otte <otte@gnome.org>
Wed, 6 Feb 2002 15:02:26 +0000 (15:02 +0000)
Original commit message from CVS:
<wingo> i thought _get gave you a copy of the string --- he's right

tools/gst-launch.c

index 43f83b6..783e0b1 100644 (file)
@@ -52,6 +52,7 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
     gchar *str;
     g_object_get (orig, pspec->name, &str, NULL);
     g_print ("%s: %s = \"%s\"\n", GST_OBJECT_NAME (orig), pspec->name, str);
+    g_free (str);
   } else if (G_IS_PARAM_SPEC_CHAR (pspec)) {
     gchar str;
     g_object_get (orig, pspec->name, &str, NULL);