app/core/gimpcontext.c (gimp_context_deserialize_property) g_free() the
2003-04-13 Michael Natterer <mitch@gimp.org> * app/core/gimpcontext.c (gimp_context_deserialize_property) * app/core/gimpcontainer.c (gimp_container_deserialize): g_free() the string returned by gimp_scanner_parse_string(). Replace NULL object names by "".
This commit is contained in:
committed by
Michael Natterer
parent
4799083c69
commit
ffa291d6ce
@ -468,7 +468,7 @@ gimp_container_deserialize (GObject *object,
|
||||
{
|
||||
GimpObject *child;
|
||||
GType type;
|
||||
gchar *name;
|
||||
gchar *name = NULL;
|
||||
|
||||
type = g_type_from_name (scanner->value.v_identifier);
|
||||
|
||||
@ -503,6 +503,9 @@ gimp_container_deserialize (GObject *object,
|
||||
break;
|
||||
}
|
||||
|
||||
if (! name)
|
||||
name = g_strdup ("");
|
||||
|
||||
child = gimp_container_get_child_by_name (container, name);
|
||||
|
||||
if (! child)
|
||||
@ -525,6 +528,8 @@ gimp_container_deserialize (GObject *object,
|
||||
g_object_unref (child);
|
||||
}
|
||||
|
||||
g_free (name);
|
||||
|
||||
{
|
||||
GimpConfigInterface *config_iface;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user