From c5e4a16ea91a6857a9e8d3876f8e47872bfd2b8c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 16 Jun 2010 16:39:43 +0200 Subject: use tp_g_signal_connect_object to connect the "closed" signal on the notification This fix a crash if the chat window is destroyed while the notification is still displayed (#621789). --- src/empathy-chat-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 7407ee355..8a0502b26 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1299,8 +1299,8 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); - g_signal_connect (notification, "closed", - G_CALLBACK (chat_window_notification_closed_cb), window); + tp_g_signal_connect_object (notification, "closed", + G_CALLBACK (chat_window_notification_closed_cb), window, 0); if (has_x_canonical_append) { notify_notification_set_hint_string (notification, -- cgit v1.2.3