# HG changeset patch # User Stu Tomlinson # Date 1145113290 0 # Node ID 43c7e892d8bfed0da1c8a06b7d0001f78bf94670 # Parent a376b680ae84477227da118f65a9d2dfc2051bd4 [gaim-migrate @ 16037] Fix Coverity CID 105 and plug a small leak committer: Tailor Script diff -r a376b680ae84 -r 43c7e892d8bf src/gtkaccount.c --- 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: