gst/gstpluginfeature.c: Revert patch from #459466 until after the release and we...
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 31 Jul 2007 10:10:27 +0000 (10:10 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 31 Jul 2007 10:10:27 +0000 (10:10 +0000)
Original commit message from CVS:
* gst/gstpluginfeature.c: (gst_plugin_feature_finalize),
(gst_plugin_feature_set_name):
Revert patch from #459466 until after the release and we can work
out exactly what the problem is (if any).

ChangeLog
gst/gstpluginfeature.c

index ed89c79..3499df1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-31  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * gst/gstpluginfeature.c: (gst_plugin_feature_finalize),
+       (gst_plugin_feature_set_name):
+       Revert patch from #459466 until after the release and we can work
+       out exactly what the problem is (if any).
+
 2007-07-26  Tim-Philipp Müller  <tim at centricular dot net>
 
        * docs/gst/gstreamer-sections.txt:
index 66fdbf1..4430874 100644 (file)
@@ -68,6 +68,7 @@ gst_plugin_feature_finalize (GObject * object)
 
   GST_DEBUG ("finalizing feature %p: '%s'", feature,
       GST_PLUGIN_FEATURE_NAME (feature));
+  g_free (feature->name);
   g_free (feature->plugin_name);
 
   G_OBJECT_CLASS (parent_class)->finalize (object);
@@ -183,9 +184,9 @@ gst_plugin_feature_set_name (GstPluginFeature * feature, const gchar * name)
   if (feature->name) {
     g_return_if_fail (strcmp (feature->name, name) == 0);
   } else {
-    gst_object_set_name (GST_OBJECT (feature), name);
-    feature->name = GST_OBJECT_NAME (GST_OBJECT (feature));
+    feature->name = g_strdup (name);
   }
+  gst_object_set_name (GST_OBJECT (feature), feature->name);
 }
 
 /**