CProgressBarCache: ensure clean iterator inside pbcClear()

For safety only.
This commit is contained in:
2017-06-15 01:01:54 +02:00
parent 08e610859f
commit 5573d17cce

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