mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
CProgressBarCache: ensure clean iterator inside pbcClear()
For safety only.
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