From b39a30028103a52eb5867c3041c32c4b9efa70fb Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 13 Oct 2008 07:55:41 +0000 Subject: [PATCH] empathy_chatroom_manager_remove: when looking for the chatroom to remove check the address first so we are not confuse if the room was invalidated svn path=/trunk/; revision=1579 --- libempathy/empathy-chatroom-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c index 96dd8dd4..3c2eb66b 100644 --- a/libempathy/empathy-chatroom-manager.c +++ b/libempathy/empathy-chatroom-manager.c @@ -351,7 +351,8 @@ empathy_chatroom_manager_remove (EmpathyChatroomManager *manager, this_chatroom = l->data; - if (empathy_chatroom_equal (chatroom, this_chatroom)) { + if (this_chatroom == chatroom || + empathy_chatroom_equal (chatroom, this_chatroom)) { gboolean favorite; priv->chatrooms = g_list_delete_link (priv->chatrooms, l); -- 2.39.2