mirror of https://github.com/GNOME/gimp.git
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:
parent
158fa888a6
commit
0b900239d5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue