[gnome-builder/wip/chergert/debugger: 56/58] debugger: hold on to debugger instance after starting
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 56/58] debugger: hold on to debugger instance after starting
- Date: Sun, 26 Mar 2017 07:26:03 +0000 (UTC)
commit 0ef7b96787fe2d2e47a9eb792aafe8a01949ea74
Author: Christian Hergert <chergert redhat com>
Date: Sun Mar 26 00:19:39 2017 -0700
debugger: hold on to debugger instance after starting
libide/debugger/ide-debug-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libide/debugger/ide-debug-manager.c b/libide/debugger/ide-debug-manager.c
index ebd2ed5..c4dd3a4 100644
--- a/libide/debugger/ide-debug-manager.c
+++ b/libide/debugger/ide-debug-manager.c
@@ -31,6 +31,7 @@ struct _IdeDebugManager
{
IdeObject parent_instance;
GSimpleActionGroup *actions;
+ IdeDebugger *debugger;
guint active : 1;
};
@@ -141,6 +142,7 @@ ide_debug_manager_finalize (GObject *object)
IdeDebugManager *self = (IdeDebugManager *)object;
g_clear_object (&self->actions);
+ g_clear_object (&self->debugger);
G_OBJECT_CLASS (ide_debug_manager_parent_class)->finalize (object);
}
@@ -291,6 +293,8 @@ ide_debug_manager_start (IdeDebugManager *self,
self,
G_CONNECT_SWAPPED);
+ self->debugger = g_steal_pointer (&debugger);
+
ide_debug_manager_set_active (self, TRUE);
ret = TRUE;
@@ -303,6 +307,8 @@ void
ide_debug_manager_stop (IdeDebugManager *self)
{
g_return_if_fail (IDE_IS_DEBUG_MANAGER (self));
+
+ g_clear_object (&self->debugger);
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]