formatter: Plug some leaks
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 31 Dec 2012 01:37:22 +0000 (22:37 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 3 Jan 2013 12:44:35 +0000 (09:44 -0300)
ges/ges-formatter.c

index 9de9a19..22c1d34 100644 (file)
@@ -433,8 +433,8 @@ _list_formatters (GType * formatters, guint n_formatters)
     if (tmp_n_types) {
       /* Recurse as g_type_children does not */
       _list_formatters (tmptypes, tmp_n_types);
-      g_free (tmptypes);
     }
+    g_free (tmptypes);
 
     if (G_TYPE_IS_ABSTRACT (type)) {
       GST_DEBUG ("%s is abstract, not using", g_type_name (type));