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:
2017-06-15 01:01:54 +02:00
parent c40254e94c
commit 02b6bd4930

View File

@@ -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();
} }