[anjuta] debug-manager: Remove weak pointer when needed



commit 2eaced77d194fe631028d9e8e5a2be8e83a8aa68
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Mon Feb 10 22:25:02 2014 +0100

    debug-manager: Remove weak pointer when needed

 plugins/debug-manager/plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/debug-manager/plugin.c b/plugins/debug-manager/plugin.c
index 5ebf400..5ae2844 100644
--- a/plugins/debug-manager/plugin.c
+++ b/plugins/debug-manager/plugin.c
@@ -273,6 +273,9 @@ value_added_current_editor (AnjutaPlugin *plugin, const char *name,
        editor = g_value_get_object (value);
        DEBUG_PRINT("add value current editor %p",  editor);
 
+       if (self->current_editor)
+               g_object_remove_weak_pointer (G_OBJECT (self->current_editor), (gpointer 
*)(gpointer)&self->current_editor);
+
        if (!IANJUTA_IS_EDITOR(editor))
        {
                self->current_editor = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]