From f07a700ce8cc0c5d0f892d357ececc47e601aecd Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 25 Jul 2007 14:55:44 +0000 Subject: Add a check to be sure the new channel is valid in the NewChannel cb. 2007-07-25 Xavier Claessens * libempathy/empathy-tp-contact-list.c: Add a check to be sure the new channel is valid in the NewChannel cb. Fixes bug #451564. svn path=/trunk/; revision=191 --- ChangeLog | 5 +++++ libempathy/empathy-tp-contact-list.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 85281f177..37aefc9b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-25 Xavier Claessens + + * libempathy/empathy-tp-contact-list.c: Add a check to be sure the + new channel is valid in the NewChannel cb. Fixes bug #451564. + 2007-07-20 Xavier Claessens * libempathy/Makefile.am: diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 8ecf564e3..5c5e02d02 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -974,6 +974,7 @@ tp_contact_list_newchannel_cb (DBusGProxy *proxy, bus_name, object_path, channel_type, handle_type, channel_handle); + g_return_if_fail (TELEPATHY_IS_CHAN (new_chan)); if (handle_type == TP_HANDLE_TYPE_LIST) { TpContactListType list_type; -- cgit v1.2.3