changeset 13639:43c7e892d8bf

[gaim-migrate @ 16037] Fix Coverity CID 105 and plug a small leak committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 15 Apr 2006 15:01:30 +0000
parents a376b680ae84
children d12bbe6da705
files src/gtkaccount.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Sat Apr 15 14:53:51 2006 +0000
+++ b/src/gtkaccount.c	Sat Apr 15 15:01:30 2006 +0000
@@ -1559,6 +1559,7 @@
 			GtkWidget *widget = l2->data;
 			GtkTreeIter iter;
 			const char *setting;
+			char *value2;
 			int int_value;
 			gboolean bool_value;
 
@@ -1585,8 +1586,9 @@
 
 				case GAIM_PREF_STRING_LIST:
 					gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter);
-					gtk_tree_model_get(gtk_combo_box_get_model(GTK_COMBO_BOX(widget)), &iter, 1, &value, -1);
-					gaim_account_set_string(dialog->account, setting, value);
+					gtk_tree_model_get(gtk_combo_box_get_model(GTK_COMBO_BOX(widget)), &iter, 1, &value2, -1);
+					gaim_account_set_string(account, setting, value2);
+					g_free(value2);
 					break;
 
 				default: