]> git.0d.be Git - empathy.git/commitdiff
Simplify expression in tp_contact_list_group_add_data_unref
authorXavier Claessens <xclaesse@gmail.com>
Mon, 20 Apr 2009 22:58:51 +0000 (00:58 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:15 +0000 (12:21 +0200)
libempathy/empathy-tp-contact-list.c

index 0237570a0d3e3557bfdecb0fcd957b86dc81bce4..a4d91be1d0b378744a78d93bbb328ba0fe43abbe 100644 (file)
@@ -228,7 +228,8 @@ tp_contact_list_group_add_data_unref (gpointer user_data)
 {
        GroupAddData *data = user_data;
 
-       if (--data->ref_count == 0) {
+       data->ref_count--;
+       if (data->ref_count == 0) {
                g_array_free (data->handles, TRUE);
                g_slice_free (GroupAddData, data);
        }