Mercurial > pidgin.yaz
changeset 32683:a7f0fdce9a0e
Don't leak variant name and list.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 24 Sep 2011 21:18:17 +0000 |
parents | 5cf6c4a8dcab |
children | 459ffa11348e |
files | pidgin/gtkconv-theme.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv-theme.c Sat Sep 24 21:16:14 2011 +0000 +++ b/pidgin/gtkconv-theme.c Sat Sep 24 21:18:17 2011 +0000 @@ -454,6 +454,7 @@ pidgin_conv_theme_finalize(GObject *obj) { PidginConvThemePrivate *priv; + GList *list; priv = PIDGIN_CONV_THEME_GET_PRIVATE(obj); @@ -476,6 +477,13 @@ if (priv->info) g_hash_table_destroy(priv->info); + list = priv->variants; + while (list) { + g_free(list->data); + list = g_list_delete_link(list, list); + } + g_free(priv->variant); + parent_class->finalize(obj); }