summaryrefslogtreecommitdiff
path: root/telepathy-glib/group-mixin.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-26 13:31:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-26 13:31:44 +0000
commite26e1a800f6b55fcc727b7ff0282df72cc958fbb (patch)
treeab9c51651c1117c2ce1f701b575b7f162a5a9dca /telepathy-glib/group-mixin.c
parent8d2e647de52af7a7c3808247edb61b55ebc52047 (diff)
downloadtelepathy-glib-e26e1a800f6b55fcc727b7ff0282df72cc958fbb.tar.gz
Don't unref owner handles in remove_handle_owners_if_exist if they were 0
20080526133144-53eee-08ecc6c4d745243540cdf14d83377c974b4bd809.gz
Diffstat (limited to 'telepathy-glib/group-mixin.c')
-rw-r--r--telepathy-glib/group-mixin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/group-mixin.c b/telepathy-glib/group-mixin.c
index ac670304d..c886ac5a6 100644
--- a/telepathy-glib/group-mixin.c
+++ b/telepathy-glib/group-mixin.c
@@ -1605,8 +1605,10 @@ remove_handle_owners_if_exist (GObject *obj,
g_assert (GPOINTER_TO_UINT (local_handle) == handle);
g_array_append_val (ret, handle);
tp_handle_unref (mixin->handle_repo, handle);
- tp_handle_unref (mixin->handle_repo,
- GPOINTER_TO_UINT (owner_handle));
+
+ if (GPOINTER_TO_UINT (owner_handle) != 0)
+ tp_handle_unref (mixin->handle_repo,
+ GPOINTER_TO_UINT (owner_handle));
g_hash_table_remove (priv->handle_owners, GUINT_TO_POINTER (handle));
}