+2006-06-07 Wim Taymans <wim@fluendo.com>
+
+ * gst/gstindex.c: (gst_index_gtype_resolver):
+ * tools/gst-xmlinspect.c: (print_plugin_info):
+ Fix leak spotted by coverity checker. Fixes #343827
+ Fix another other leak found by paolo borelli.
+
2006-06-06 Thomas Vander Stichele <thomas at apestaart dot org>
* libs/gst/dataprotocol/dataprotocol.c:
if (GST_IS_PAD (writer)) {
GstElement *element =
(GstElement *) gst_object_get_parent (GST_OBJECT (writer));
+ gchar *name;
+ name = gst_object_get_name (writer);
*writer_string = g_strdup_printf ("%s.%s",
- g_type_name (G_OBJECT_TYPE (element)), gst_object_get_name (writer));
+ g_type_name (G_OBJECT_TYPE (element)), name);
+
+ gst_object_unref (element);
+ g_free (name);
+
} else {
*writer_string =
g_strdup_printf ("%s", g_type_name (G_OBJECT_TYPE (writer)));
g_print ("%s type: N/A\n", plugin->desc.name);
num_types++;
} else {
- g_print (" %s (%s)\n", gst_object_get_name (GST_OBJECT (feature)),
+ g_print (" %s (%s)\n", GST_OBJECT_NAME (feature),
g_type_name (G_OBJECT_TYPE (feature)));
num_other++;
}