]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-list.c
Simplify expression in tp_contact_list_group_add_data_unref
[empathy.git] / 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;
 
 {
        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);
        }
                g_array_free (data->handles, TRUE);
                g_slice_free (GroupAddData, data);
        }