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



commit a12af14a596fc67d27b4a263ed7e4d7676a698e0
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 7 00:52:34 2011 +0100

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

 app/file/file-open.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 8417341..4d2c1f8 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]