summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-08 16:32:54 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 09:28:41 +0100
commit52d2d0aff0c3a8bbbdd433bb63434207c2e74001 (patch)
treeda737d1e12693466030c7d0d270ee68aea64e14a
parent01e4fe629f1861723d004daba9d190abe1e3ec00 (diff)
fix hash table leak
priv->favourites takes the reference of the newly created hash table so we don't have to ref it.
-rw-r--r--libempathy/empathy-contact-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 6ccd08991..d0ba13054 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++) {