summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2011-11-18 12:32:18 +0000
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2011-11-18 14:18:43 +0000
commit6b705626d17f05552e518107afbca35012c12b73 (patch)
treea974066b87c46ba04c1a519a589f6f84cfdab227 /tests
parent1be52f807c693d2db9de7c0784081dda855e0aee (diff)
downloadtelepathy-logger-6b705626d17f05552e518107afbca35012c12b73.tar.gz
Replace g_hash_table_destroy with g_hash_table_unref
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/contacts-conn.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/lib/contacts-conn.c b/tests/lib/contacts-conn.c
index f786d52..c2d7cbc 100644
--- a/tests/lib/contacts-conn.c
+++ b/tests/lib/contacts-conn.c
@@ -159,13 +159,13 @@ finalize (GObject *object)
TpTestsContactsConnection *self = TP_TESTS_CONTACTS_CONNECTION (object);
tp_contacts_mixin_finalize (object);
- g_hash_table_destroy (self->priv->aliases);
- g_hash_table_destroy (self->priv->avatars);
- g_hash_table_destroy (self->priv->presence_statuses);
- g_hash_table_destroy (self->priv->presence_messages);
- g_hash_table_destroy (self->priv->locations);
- g_hash_table_destroy (self->priv->capabilities);
- g_hash_table_destroy (self->priv->contact_info);
+ g_hash_table_unref (self->priv->aliases);
+ g_hash_table_unref (self->priv->avatars);
+ g_hash_table_unref (self->priv->presence_statuses);
+ g_hash_table_unref (self->priv->presence_messages);
+ g_hash_table_unref (self->priv->locations);
+ g_hash_table_unref (self->priv->capabilities);
+ g_hash_table_unref (self->priv->contact_info);
if (self->priv->default_contact_info != NULL)
g_ptr_array_unref (self->priv->default_contact_info);
@@ -427,7 +427,7 @@ my_get_contact_statuses (GObject *object,
g_hash_table_insert (result, key,
tp_presence_status_new (index, parameters));
- g_hash_table_destroy (parameters);
+ g_hash_table_unref (parameters);
}
return result;
@@ -573,12 +573,12 @@ tp_tests_contacts_connection_change_presences (
g_hash_table_insert (presences, key, tp_presence_status_new (indexes[i],
parameters));
- g_hash_table_destroy (parameters);
+ g_hash_table_unref (parameters);
}
tp_presence_mixin_emit_presence_update ((GObject *) self,
presences);
- g_hash_table_destroy (presences);
+ g_hash_table_unref (presences);
}
void
@@ -727,7 +727,7 @@ my_get_aliases (TpSvcConnectionInterfaceAliasing *aliasing,
tp_svc_connection_interface_aliasing_return_from_get_aliases (context,
result);
- g_hash_table_destroy (result);
+ g_hash_table_unref (result);
}
static void
@@ -838,7 +838,7 @@ my_get_avatar_tokens (TpSvcConnectionInterfaceAvatars *avatars,
tp_svc_connection_interface_avatars_return_from_get_known_avatar_tokens (
context, result);
- g_hash_table_destroy (result);
+ g_hash_table_unref (result);
}
static void
@@ -878,7 +878,7 @@ my_get_known_avatar_tokens (TpSvcConnectionInterfaceAvatars *avatars,
tp_svc_connection_interface_avatars_return_from_get_known_avatar_tokens (
context, result);
- g_hash_table_destroy (result);
+ g_hash_table_unref (result);
}
static void
@@ -992,7 +992,7 @@ my_get_locations (TpSvcConnectionInterfaceLocation *avatars,
tp_svc_connection_interface_location_return_from_get_locations (
context, result);
- g_hash_table_destroy (result);
+ g_hash_table_unref (result);
}
static void
@@ -1046,7 +1046,7 @@ my_get_contact_capabilities (TpSvcConnectionInterfaceContactCapabilities *obj,
tp_svc_connection_interface_contact_capabilities_return_from_get_contact_capabilities (
context, result);
- g_hash_table_destroy (result);
+ g_hash_table_unref (result);
}
static void