[gnome-builder/gnome-builder-3-26] workbench: clear addins before starting unload process
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-26] workbench: clear addins before starting unload process
- Date: Tue, 26 Sep 2017 06:53:54 +0000 (UTC)
commit 81f6bea022c623b78c43dfe88e037448ffe4e53e
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 25 23:49:38 2017 -0700
workbench: clear addins before starting unload process
We want to ensure that these are getting unloaded properly, and
they were not before due to the async function.
libide/workbench/ide-workbench.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index 008d903..8f58714 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -171,6 +171,7 @@ ide_workbench_delete_event (GtkWidget *widget,
self->unloading = TRUE;
+ g_clear_object (&self->addins);
g_signal_emit (self, signals [UNLOAD], 0, self->context);
if (self->context != NULL)
@@ -183,8 +184,6 @@ ide_workbench_delete_event (GtkWidget *widget,
return GDK_EVENT_STOP;
}
- g_clear_object (&self->addins);
-
return GDK_EVENT_PROPAGATE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]