Ref/unref dialog->image around saving as well...

...to avoid warnings that happen if the image got closed before the
saving finishes.

(amends commit a0e48ad29e)
This commit is contained in:
Nils Philippsen 2015-07-17 17:07:18 +02:00
parent 158fa888a6
commit 0b900239d5
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}