[gimp] app: Remove image refs in file_save_dialog_save_image()



commit 290d433edf587e1a01ca4f7498914e88b9ab9066
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat May 2 15:33:05 2009 +0200

    app: Remove image refs in file_save_dialog_save_image()
    
    The function file_save() also refs the image so there is no for
    file_save_dialog_save_image() to do the same.
---
 app/dialogs/file-save-dialog.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index c5ae4cb..6e479bc 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -486,15 +486,11 @@ file_save_dialog_save_image (GtkWidget           *save_dialog,
       gimp_action_group_set_action_sensitive (list->data, "file-quit", FALSE);
     }
 
-  g_object_ref (image);
-
   status = file_save (image, gimp_get_user_context (image->gimp),
                       GIMP_PROGRESS (save_dialog),
                       uri, save_proc,
                       GIMP_RUN_INTERACTIVE, save_a_copy, &error);
 
-  g_object_unref (image);
-
   switch (status)
     {
     case GIMP_PDB_SUCCESS:



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