From a12af14a596fc67d27b4a263ed7e4d7676a698e0 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 7 Feb 2011 00:52:34 +0100 Subject: [PATCH] app: don't forget to free the layer's new name --- app/file/file-open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/file/file-open.c b/app/file/file-open.c index 8417341850..4d2c1f827f 100644 --- a/app/file/file-open.c +++ b/app/file/file-open.c @@ -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);