Mercurial > pidgin.yaz
changeset 10930:bfb3ac69cdd0
[gaim-migrate @ 12709]
plug a small leak
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 19 May 2005 00:20:35 +0000 |
parents | 0e274aad49c8 |
children | ceb88f2a2f17 |
files | src/gtkprefs.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkprefs.c Thu May 19 00:06:37 2005 +0000 +++ b/src/gtkprefs.c Thu May 19 00:20:35 2005 +0000 @@ -1426,7 +1426,7 @@ GtkTreeModel *model = (GtkTreeModel *)data; GtkTreeIter iter; GtkTreePath *path = gtk_tree_path_new_from_string(pth); - const char *pref; + char *pref; gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, @@ -1434,6 +1434,7 @@ -1); gaim_prefs_set_bool(pref, !gtk_cell_renderer_toggle_get_active(cell)); + g_free(pref); gtk_list_store_set(GTK_LIST_STORE (model), &iter, 0, !gtk_cell_renderer_toggle_get_active(cell),