diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-08 23:32:54 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-15 16:28:41 +0800 |
commit | 52d2d0aff0c3a8bbbdd433bb63434207c2e74001 (patch) | |
tree | da737d1e12693466030c7d0d270ee68aea64e14a | |
parent | 01e4fe629f1861723d004daba9d190abe1e3ec00 (diff) | |
download | gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar.gz gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar.bz2 gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar.lz gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar.xz gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.tar.zst gsoc2013-empathy-52d2d0aff0c3a8bbbdd433bb63434207c2e74001.zip |
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.c | 3 |
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++) { |