From a04f8ff608edfd05b7dafb789eca0e96b7ee9b63 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 1 Oct 2007 11:48:04 +0000 Subject: Disconnect signals on chatroom manager. Fixes bug #456619. 2007-10-01 Xavier Claessens * libempathy-gtk/empathy-chatrooms-window.c: Disconnect signals on chatroom manager. Fixes bug #456619. svn path=/trunk/; revision=346 --- libempathy-gtk/empathy-chatrooms-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libempathy-gtk') 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); } -- cgit v1.2.3