[gimp] Issue #1974: another memory leak when saving a file.



commit 50221e143826fd7b84e97c88ca374dc68b43c782
Author: Jehan <jehan girinstud io>
Date:   Sun Aug 5 11:35:18 2018 +0200

    Issue #1974: another memory leak when saving a file.

 app/widgets/gimpsavedialog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/app/widgets/gimpsavedialog.c b/app/widgets/gimpsavedialog.c
index 48e451f553..167fbc8628 100644
--- a/app/widgets/gimpsavedialog.c
+++ b/app/widgets/gimpsavedialog.c
@@ -329,6 +329,7 @@ gimp_save_dialog_set_image (GimpSaveDialog *dialog,
     }
 
   gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), basename);
+  g_free (basename);
 }
 
 


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