+2008-01-29 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * tools/gst-inspect.c: (print_interfaces),
+ (print_element_properties_info), (print_pad_info),
+ (print_signal_info), (print_element_info):
+ Fix a few memory leaks.
+
2008-01-28 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac:
if (_name)
g_print (_name);
g_print ("\n");
- g_free (ifaces);
}
+ g_free (ifaces);
}
}
g_print (" Write only\n");
else
g_print ("\n");
+
+ g_value_reset (&value);
}
if (num_properties == 0)
n_print (" none\n");
pads = element->pads;
while (pads) {
+ gchar *name;
+
pad = GST_PAD (pads->data);
pads = g_list_next (pads);
n_print ("");
+ name = gst_pad_get_name (pad);
if (gst_pad_get_direction (pad) == GST_PAD_SRC)
- g_print (" SRC: '%s'", gst_pad_get_name (pad));
+ g_print (" SRC: '%s'", name);
else if (gst_pad_get_direction (pad) == GST_PAD_SINK)
- g_print (" SINK: '%s'", gst_pad_get_name (pad));
+ g_print (" SINK: '%s'", name);
else
- g_print (" UNKNOWN!!!: '%s'", gst_pad_get_name (pad));
+ g_print (" UNKNOWN!!!: '%s'", name);
+
+ g_free (name);
g_print ("\n");
if ((k == 0 && !(query->signal_flags & G_SIGNAL_ACTION)) ||
(k == 1 && (query->signal_flags & G_SIGNAL_ACTION)))
found_signals = g_slist_append (found_signals, query);
+ else
+ g_free (query);
}
+ g_free (signals);
+ signals = NULL;
}
if (found_signals) {
print_signal_info (element);
print_children_info (element);
+ gst_object_unref (element);
gst_object_unref (factory);
g_free (_name);