[gimp] Ref/unref dialog->image around saving as well...
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Ref/unref dialog->image around saving as well...
- Date: Fri, 17 Jul 2015 15:11:20 +0000 (UTC)
commit 0b900239d57161da11e3e0c8094552cf1480dcd3
Author: Nils Philippsen <nils redhat com>
Date: Fri Jul 17 17:07:18 2015 +0200
Ref/unref dialog->image around saving as well...
...to avoid warnings that happen if the image got closed before the
saving finishes.
(amends commit a0e48ad29e93e2dc259879abeb2dedc9a420b8f6)
app/dialogs/file-save-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 48c43a6..c75b549 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -182,6 +182,7 @@ file_save_dialog_response (GtkWidget *save_dialog,
}
g_object_ref (dialog);
+ g_object_ref (dialog->image);
switch (file_save_dialog_check_file (save_dialog, gimp,
&file, &basename, &save_proc))
@@ -256,6 +257,7 @@ file_save_dialog_response (GtkWidget *save_dialog,
break;
}
+ g_object_unref (dialog->image);
g_object_unref (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]