From 3aabf06c86118e69143a67e0aae26ca8a156324d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 14 Jun 2009 19:41:27 +0200 Subject: frei0r: Free type names --- gst/frei0r/gstfrei0rfilter.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gst/frei0r/gstfrei0rfilter.c') diff --git a/gst/frei0r/gstfrei0rfilter.c b/gst/frei0r/gstfrei0rfilter.c index df455120..ef178c97 100644 --- a/gst/frei0r/gstfrei0rfilter.c +++ b/gst/frei0r/gstfrei0rfilter.c @@ -231,6 +231,7 @@ gst_frei0r_filter_register (GstPlugin * plugin, const f0r_plugin_info_t * info, GType type; gchar *type_name, *tmp; GstFrei0rFilterClassData *class_data; + gboolean ret = FALSE; tmp = g_strdup_printf ("frei0r-filter-%s", info->name); type_name = g_ascii_strdown (tmp, -1); @@ -254,5 +255,8 @@ gst_frei0r_filter_register (GstPlugin * plugin, const f0r_plugin_info_t * info, type = g_type_register_static (GST_TYPE_VIDEO_FILTER, type_name, &typeinfo, 0); - return (gst_element_register (plugin, type_name, GST_RANK_NONE, type)); + ret = gst_element_register (plugin, type_name, GST_RANK_NONE, type); + + g_free (type_name); + return ret; } -- cgit v1.2.1