aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-01 19:48:04 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-01 19:48:04 +0800
commita04f8ff608edfd05b7dafb789eca0e96b7ee9b63 (patch)
treefaac270a5d70423b14cbfea4ee44b5f5df519a8a
parent64892cb5dd16bb1478e7dd02e73c99a88889a9a0 (diff)
downloadgsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar.gz
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar.bz2
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar.lz
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar.xz
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.tar.zst
gsoc2013-empathy-a04f8ff608edfd05b7dafb789eca0e96b7ee9b63.zip
Disconnect signals on chatroom manager. Fixes bug #456619.
2007-10-01 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-chatrooms-window.c: Disconnect signals on chatroom manager. Fixes bug #456619. svn path=/trunk/; revision=346
-rw-r--r--ChangeLog5
-rw-r--r--libempathy-gtk/empathy-chatrooms-window.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f748cdac6..e9a15a6f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-10-01 Xavier Claessens <xclaesse@gmail.com>
+ * libempathy-gtk/empathy-chatrooms-window.c: Disconnect signals on
+ chatroom manager. Fixes bug #456619.
+
+2007-10-01 Xavier Claessens <xclaesse@gmail.com>
+
* libempathy-gtk/empathy-contact-list-store.c: Disconnect signals on
list and contacts when finalizing the store.
diff --git a/libempathy-gtk/empathy-chatrooms-window.c b/libempathy-gtk/empathy-chatrooms-window.c
index 9a0d125ed..13888a2ff 100644
--- a/libempathy-gtk/empathy-chatrooms-window.c
+++ b/libempathy-gtk/empathy-chatrooms-window.c
@@ -188,6 +188,12 @@ static void
chatrooms_window_destroy_cb (GtkWidget *widget,
EmpathyChatroomsWindow *window)
{
+ g_signal_handlers_disconnect_by_func (window->manager,
+ chatrooms_window_chatroom_added_cb,
+ window);
+ g_signal_handlers_disconnect_by_func (window->manager,
+ chatrooms_window_chatroom_removed_cb,
+ window);
g_object_unref (window->manager);
g_free (window);
}