[gimp] plug-ins: GEGL buffers leaked when canceling gif export.



commit 0593eaa7c36b06e077cf1c0fceb06f204b4f5131
Author: Jehan <jehan girinstud io>
Date:   Fri Sep 4 18:26:35 2015 +0200

    plug-ins: GEGL buffers leaked when canceling gif export.
    
    Delete the duplicated sanitized image when canceling in the gif options
    dialog.

 plug-ins/common/file-gif-save.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index 6c8242f..8726894 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -252,7 +252,10 @@ run (const gchar      *name,
 
               /*  First acquire information with a dialog  */
               if (! save_dialog (image_ID))
-                status = GIMP_PDB_CANCEL;
+                {
+                  gimp_image_delete (sanitized_image_ID);
+                  status = GIMP_PDB_CANCEL;
+                }
               break;
 
             case GIMP_RUN_NONINTERACTIVE:


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