pidgin: 48a04e14: Don't leak variant name and list.
qulogic at pidgin.im
qulogic at pidgin.im
Sat Sep 24 17:30:24 EDT 2011
----------------------------------------------------------------------
Revision: 48a04e149f49af3122c4a2580ae2c17355f62f98
Parent: 54e5cac8d929c69f68dd31d6ad3444b49e5cecf8
Author: qulogic at pidgin.im
Date: 09/24/11 17:18:17
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/48a04e149f49af3122c4a2580ae2c17355f62f98
Changelog:
Don't leak variant name and list.
Changes against parent 54e5cac8d929c69f68dd31d6ad3444b49e5cecf8
patched pidgin/gtkconv-theme.c
-------------- next part --------------
============================================================
--- pidgin/gtkconv-theme.c d52f979dd28dadd7e2a89fe48e9124ee9656a1f3
+++ pidgin/gtkconv-theme.c 5307d6bd700bed81ab0f023822c9b97bcbba7bcf
@@ -454,6 +454,7 @@ pidgin_conv_theme_finalize(GObject *obj)
pidgin_conv_theme_finalize(GObject *obj)
{
PidginConvThemePrivate *priv;
+ GList *list;
priv = PIDGIN_CONV_THEME_GET_PRIVATE(obj);
@@ -476,6 +477,13 @@ pidgin_conv_theme_finalize(GObject *obj)
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);
}
More information about the Commits
mailing list