[empathy/gnome-3-6] irc-network-chooser-dialog: break live search references cycle



commit 278b6cf31b679e8473f81ec84a90e092d544c3b1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Mar 11 16:54:45 2013 +0100

    irc-network-chooser-dialog: break live search references cycle
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692105

 .../empathy-irc-network-chooser-dialog.c           |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-irc-network-chooser-dialog.c 
b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
index 13efaa5..598f923 100644
--- a/libempathy-gtk/empathy-irc-network-chooser-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
@@ -613,6 +613,14 @@ empathy_irc_network_chooser_dialog_dispose (GObject *object)
       priv->activate_sig = 0;
     }
 
+  if (priv->search != NULL)
+    {
+      empathy_live_search_set_hook_widget (EMPATHY_LIVE_SEARCH (priv->search),
+          NULL);
+
+      priv->search = NULL;
+    }
+
   tp_clear_object (&priv->settings);
   tp_clear_object (&priv->network);
   tp_clear_object (&priv->network_manager);


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