app: don't forget to free the layer's new name

This commit is contained in:
Michael Natterer 2011-02-07 00:52:34 +01:00
parent 0d2de3e7c1
commit a12af14a59
1 changed files with 2 additions and 0 deletions

View File

@ -419,6 +419,8 @@ file_open_with_proc_and_display (Gimp *gimp,
gimp_item_rename (GIMP_ITEM (layer), basename, NULL);
gimp_image_undo_free (image);
gimp_image_clean_all (image);
g_free (basename);
}
gimp_create_display (image->gimp, image, GIMP_UNIT_PIXEL, 1.0);