[empathy] fix hash table leak
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] fix hash table leak
- Date: Mon, 15 Mar 2010 08:29:45 +0000 (UTC)
commit 52d2d0aff0c3a8bbbdd433bb63434207c2e74001
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 8 16:32:54 2010 +0100
fix hash table leak
priv->favourites takes the reference of the newly created hash table so we
don't have to ref it.
libempathy/empathy-contact-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 6ccd089..d0ba130 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -303,9 +303,10 @@ add_contacts_to_favourites (EmpathyContactManager *self,
contact_hash = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_free, NULL);
+
g_hash_table_insert (priv->favourites,
g_strdup (account),
- g_hash_table_ref (contact_hash));
+ contact_hash);
}
for (j = 0; contacts && contacts[j] != NULL; j++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]