From b5fe6c43e1e5c6e880547a456da8eaef1fe77e20 Mon Sep 17 00:00:00 2001 From: jhs Date: Sat, 13 Oct 2007 19:48:45 +0000 Subject: [PATCH] 2007-10-13 Johannes Schmid * plugins/debug-manager/plugin.c: (enable_log_view): Fixed crash when closing a project and unloading another while the debugger is enabled git-svn-id: http://svn.gnome.org/svn/anjuta/trunk@3209 1dbfb86a-d425-0410-a06b-cb591aac69f6 --- ChangeLog | 7 +++++++ plugins/debug-manager/plugin.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5ecf0619..eccbadff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2007-10-13 Johannes Schmid + * plugins/debug-manager/plugin.c: (enable_log_view): + + Fixed crash when closing a project and unloading another while + the debugger is enabled + +2007-10-13 Johannes Schmid + * plugins/debug-manager/breakpoints.c: (breakpoints_dbase_new): Use correct breakpoint icon diff --git a/plugins/debug-manager/plugin.c b/plugins/debug-manager/plugin.c index faf719c5..794f27ff 100644 --- a/plugins/debug-manager/plugin.c +++ b/plugins/debug-manager/plugin.c @@ -359,7 +359,10 @@ enable_log_view (DebugManagerPlugin *this, gboolean enable) ianjuta_message_manager_remove_view (man, this->view, NULL); this->view = NULL; } - dma_queue_disable_log (this->queue); + if (this->queue != NULL) + { + dma_queue_disable_log (this->queue); + } } } -- 2.11.4.GIT