From 52d2d0aff0c3a8bbbdd433bb63434207c2e74001 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 8 Mar 2010 16:32:54 +0100 Subject: 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 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-contact-manager.c') 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++) { -- cgit v1.2.3