aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-contact-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 0237570a0..a4d91be1d 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -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);
}