mirror of https://github.com/BOINC/boinc.git
- 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:
parent
c7e505dc81
commit
0990d99fdb
|
@ -6831,3 +6831,12 @@ David 5 Oct
|
||||||
client/
|
client/
|
||||||
app.h
|
app.h
|
||||||
app_control.cpp
|
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
|
||||||
|
|
|
@ -240,4 +240,8 @@ void CLIENT_STATE::free_mem() {
|
||||||
delete file_xfers;
|
delete file_xfers;
|
||||||
delete pers_file_xfers;
|
delete pers_file_xfers;
|
||||||
delete scheduler_op;
|
delete scheduler_op;
|
||||||
|
|
||||||
|
notices.clear();
|
||||||
|
rss_feeds.clear();
|
||||||
|
daily_xfer_history.clear();
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,9 @@ struct NOTICES {
|
||||||
void unkeep(const char* url);
|
void unkeep(const char* url);
|
||||||
// called after parsing an RSS feed,
|
// called after parsing an RSS feed,
|
||||||
// to remove notices that weren't in the feed.
|
// to remove notices that weren't in the feed.
|
||||||
|
void clear() {
|
||||||
|
notices.clear();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
extern NOTICES notices;
|
extern NOTICES notices;
|
||||||
|
@ -122,6 +125,9 @@ struct RSS_FEEDS {
|
||||||
RSS_FEED* lookup_url(char*);
|
RSS_FEED* lookup_url(char*);
|
||||||
void update_proj_am(PROJ_AM*);
|
void update_proj_am(PROJ_AM*);
|
||||||
void write_feed_list();
|
void write_feed_list();
|
||||||
|
void clear() {
|
||||||
|
feeds.clear();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
extern RSS_FEEDS rss_feeds;
|
extern RSS_FEEDS rss_feeds;
|
||||||
|
|
|
@ -140,6 +140,9 @@ struct DAILY_XFER_HISTORY {
|
||||||
DAILY_XFER_HISTORY() {
|
DAILY_XFER_HISTORY() {
|
||||||
dirty = false;
|
dirty = false;
|
||||||
}
|
}
|
||||||
|
void clear() {
|
||||||
|
daily_xfers.clear();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
extern NET_STATUS net_status;
|
extern NET_STATUS net_status;
|
||||||
|
|
Loading…
Reference in New Issue