[empathy] Simplify expression in tp_contact_list_group_add_data_unref
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Simplify expression in tp_contact_list_group_add_data_unref
- Date: Wed, 22 Apr 2009 06:28:56 -0400 (EDT)
commit 485f7783cb398f8b29b6cc597d5a089a2c4f749f
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue Apr 21 00:58:51 2009 +0200
Simplify expression in tp_contact_list_group_add_data_unref
---
libempathy/empathy-tp-contact-list.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 0237570..a4d91be 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]