Don't forget to free the tmp string
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 1 Sep 2005 13:59:05 +0000 (13:59 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 1 Sep 2005 13:59:05 +0000 (13:59 +0000)
gobject/gparam.c

index 6bbeb71..2f983d8 100644 (file)
@@ -307,6 +307,7 @@ g_param_spec_internal (GType        param_type,
       tmp = g_strdup (name);
       canonicalize_key (tmp);
       pspec->name = g_intern_string (tmp);
+      g_free (tmp);
     }
 
   if (flags & G_PARAM_STATIC_NICK)