aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-21 06:58:51 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:21:15 +0800
commit485f7783cb398f8b29b6cc597d5a089a2c4f749f (patch)
tree0767ed877067864f3c048815127f0dfa6369345b
parentcd7189de1110de1c873fbed73d8a8f9e63437999 (diff)
downloadgsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar.gz
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar.bz2
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar.lz
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar.xz
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.tar.zst
gsoc2013-empathy-485f7783cb398f8b29b6cc597d5a089a2c4f749f.zip
Simplify expression in tp_contact_list_group_add_data_unref
-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);
}