mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 09:20:26 -05:00
Close memory leak
This commit is contained in:
@@ -489,8 +489,10 @@ void SyncWidget::handleTimer() {
|
||||
w->update(f->progress);
|
||||
}
|
||||
|
||||
for (FileFuture* f : toRemove)
|
||||
for (FileFuture* f : toRemove) {
|
||||
_futures.erase(std::remove(_futures.begin(), _futures.end(), f), _futures.end());
|
||||
delete f;
|
||||
}
|
||||
|
||||
std::vector<torrent_handle> handles = _session->get_torrents();
|
||||
for (torrent_handle h : handles) {
|
||||
|
||||
Reference in New Issue
Block a user