diff options
author | Pavel Vasin <rat4vier@gmail.com> | 2012-10-07 17:56:42 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-10-08 15:55:59 +0800 |
commit | f36171ef13831fbf2e7df7087e5899e05a37f2b2 (patch) | |
tree | 654ffd07bd10f472f218be32b693b6a566e30b25 /libempathy-gtk | |
parent | 3ca6b8a0f122833556e500c0dd0cfb3227180fa1 (diff) | |
download | gsoc2013-empathy-f36171ef13831fbf2e7df7087e5899e05a37f2b2.tar.gz gsoc2013-empathy-f36171ef13831fbf2e7df7087e5899e05a37f2b2.tar.zst gsoc2013-empathy-f36171ef13831fbf2e7df7087e5899e05a37f2b2.zip |
theme-manager: fix GList leak
g_hash_table_get_values() returns newly allocated list and it was lost
https://bugzilla.gnome.org/show_bug.cgi?id=685652
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-theme-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c index 6c66c2502..e743e2fa5 100644 --- a/libempathy-gtk/empathy-theme-manager.c +++ b/libempathy-gtk/empathy-theme-manager.c @@ -368,9 +368,9 @@ empathy_theme_manager_get_adium_themes (void) g_free (path); } + result = g_hash_table_get_values (hash); /* Pass ownership of the info hash table to the list */ - result = g_list_copy_deep (g_hash_table_get_values (hash), - (GCopyFunc) g_hash_table_ref, NULL); + g_list_foreach (result, (GFunc) g_hash_table_ref, NULL); g_hash_table_unref (hash); |