[gimp] Bug 731389 - gimp-edit-copy causes assertion failure on exit
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 731389 - gimp-edit-copy causes assertion failure on exit
- Date: Mon, 9 Jun 2014 23:39:00 +0000 (UTC)
commit 8aa6ff9608aa497c1b394dace50c99216b1cd995
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 10 01:35:30 2014 +0200
Bug 731389 - gimp-edit-copy causes assertion failure on exit
Shutdown the clipboard earlier at exit, it runs quite some code on
storing the copied buffer.
app/gui/gui.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index 03cbfbe..4894478 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -703,6 +703,14 @@ gui_exit_after_callback (Gimp *gimp,
g_object_unref (ui_configurer);
ui_configurer = NULL;
+ /* exit the clipboard before shutting down the GUI because it runs
+ * a whole lot of code paths. See bug #731389.
+ */
+ g_signal_handlers_disconnect_by_func (gimp,
+ G_CALLBACK (gui_global_buffer_changed),
+ NULL);
+ gimp_clipboard_exit (gimp);
+
session_exit (gimp);
menus_exit (gimp);
actions_exit (gimp);
@@ -711,12 +719,6 @@ gui_exit_after_callback (Gimp *gimp,
gimp_controllers_exit (gimp);
gimp_devices_exit (gimp);
dialogs_exit (gimp);
-
- g_signal_handlers_disconnect_by_func (gimp,
- G_CALLBACK (gui_global_buffer_changed),
- NULL);
- gimp_clipboard_exit (gimp);
-
themes_exit (gimp);
g_type_class_unref (g_type_class_peek (GIMP_TYPE_COLOR_SELECT));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]