From: <nos...@us...> - 2006-04-15 15:01:37
|
Revision: 16037 Author: nosnilmot Date: 2006-04-15 08:01:30 -0700 (Sat, 15 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16037&view=rev Log Message: ----------- Fix Coverity CID 105 and plug a small leak Modified Paths: -------------- trunk/src/gtkaccount.c Modified: trunk/src/gtkaccount.c =================================================================== --- trunk/src/gtkaccount.c 2006-04-15 14:53:51 UTC (rev 16036) +++ trunk/src/gtkaccount.c 2006-04-15 15:01:30 UTC (rev 16037) @@ -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: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |