# HG changeset patch # User Elliott Sales de Andrade # Date 1316899097 0 # Node ID a7f0fdce9a0e888b8d1666f3d87393dca9c392ee # Parent 5cf6c4a8dcabf8072a7f82222fbf6dc06831c5cf Don't leak variant name and list. diff -r 5cf6c4a8dcab -r a7f0fdce9a0e pidgin/gtkconv-theme.c --- 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); }