static void
print_plugin_features (GstPlugin * plugin)
{
- GList *features;
+ GList *features, *features_to_free;
gint num_features = 0;
gint num_elements = 0;
gint num_typefinders = 0;
gst_registry_get_feature_list_by_plugin (gst_registry_get_default (),
plugin->desc.name);
+ features_to_free = features;
while (features) {
GstPluginFeature *feature;
num_other++;
}
num_features++;
+ gst_object_unref (feature);
features = g_list_next (features);
}
n_print ("\n");
n_print (" +-- %d other objects\n", num_other);
n_print ("\n");
+
+ if (features_to_free)
+ g_list_free (features_to_free);
}
static int