Commit 0e82aca2 authored by Martin Nordholts's avatar Martin Nordholts

app: Use gimp_object_name_free() instead of manipulating private data

parent 35e67dae
......@@ -978,13 +978,13 @@ gimp_image_name_changed (GimpObject *object)
image->display_name = NULL;
}
/* We never want the empty string as a name, so change empty strings
* to NULL strings (without emitting the "name-changed" signal
* again)
*/
name = gimp_object_get_name (object);
if (! (name && strlen (name)))
{
g_free (object->name);
object->name = NULL;
}
if (name && strlen (name) == 0)
gimp_object_name_free (object);
}
static gint64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment