- client: free vectors in NOTICES, RSS_FEEDS, and DAILY_XFER_HISTORY

in free_mem() (for mem leak checking)


svn path=/trunk/boinc/; revision=24337
This commit is contained in:
David Anderson 2011-10-06 01:14:21 +00:00
parent c7e505dc81
commit 0990d99fdb
4 changed files with 54 additions and 32 deletions

View File

@ -6831,3 +6831,12 @@ David 5 Oct
client/
app.h
app_control.cpp
David 5 Oct
- client: free vectors in NOTICES, RSS_FEEDS, and DAILY_XFER_HISTORY
in free_mem() (for mem leak checking)
client
cs_notice.h
check_state.cpp
net_stats.h

View File

@ -240,4 +240,8 @@ void CLIENT_STATE::free_mem() {
delete file_xfers;
delete pers_file_xfers;
delete scheduler_op;
notices.clear();
rss_feeds.clear();
daily_xfer_history.clear();
}

View File

@ -78,6 +78,9 @@ struct NOTICES {
void unkeep(const char* url);
// called after parsing an RSS feed,
// to remove notices that weren't in the feed.
void clear() {
notices.clear();
}
};
extern NOTICES notices;
@ -122,6 +125,9 @@ struct RSS_FEEDS {
RSS_FEED* lookup_url(char*);
void update_proj_am(PROJ_AM*);
void write_feed_list();
void clear() {
feeds.clear();
}
};
extern RSS_FEEDS rss_feeds;

View File

@ -140,6 +140,9 @@ struct DAILY_XFER_HISTORY {
DAILY_XFER_HISTORY() {
dirty = false;
}
void clear() {
daily_xfers.clear();
}
};
extern NET_STATUS net_status;