mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CProgressBarCache: ensure clean iterator inside pbcClear()
For safety only.
Origin commit data
------------------
Commit: 5573d17cce
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)
This commit is contained in:
@@ -198,6 +198,7 @@ void CProgressBarCache::pbcClear()
|
|||||||
if ((*it)->pbc_passive)
|
if ((*it)->pbc_passive)
|
||||||
free((*it)->pbc_passive);
|
free((*it)->pbc_passive);
|
||||||
delete (*it);
|
delete (*it);
|
||||||
|
(*it) = NULL;
|
||||||
}
|
}
|
||||||
pbCache.clear();
|
pbCache.clear();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user