- API: free project prefs before parsing init file

svn path=/trunk/boinc/; revision=16479
This commit is contained in:
David Anderson 2008-11-11 23:39:00 +00:00
parent fd8470af2a
commit a3b6ddf6ff
2 changed files with 10 additions and 2 deletions

View File

@ -505,8 +505,10 @@ int boinc_parse_init_data_file() {
FILE* f;
int retval;
// in principle should free project_preferences here if it's nonzero
if (aid.project_preferences) {
free(aid.project_preferences);
aid.project_preferences = NULL;
}
memset(&aid, 0, sizeof(aid));
strcpy(aid.user_name, "");
strcpy(aid.team_name, "");

View File

@ -9369,3 +9369,9 @@ David 11 Nov 2008
time_stats.cpp
lib/
parse.cpp
David 11 Nov 2008
- API: free project prefs before parsing init file
api/
boinc_api.cpp