]> git.0d.be Git - empathy.git/commitdiff
Add a check to be sure the new channel is valid in the NewChannel cb.
authorXavier Claessens <xclaesse@gmail.com>
Wed, 25 Jul 2007 14:55:44 +0000 (14:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 25 Jul 2007 14:55:44 +0000 (14:55 +0000)
2007-07-25 Xavier Claessens  <xclaesse@gmail.com>

* 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
libempathy/empathy-tp-contact-list.c

index 85281f17770fa61a91609f98a531594932e49691..37aefc9b6d42e8adc18229ec9eeffa4bd2a912e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-25 Xavier Claessens  <xclaesse@gmail.com>
+
+       * 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  <xclaesse@gmail.com>
 
        * libempathy/Makefile.am:
index 8ecf564e3daeb69af841e031ce5c4c91904d8bdb..5c5e02d028cfae192f460e50d172fae375b7f76a 100644 (file)
@@ -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;