From 02b6bd49304c5d3b15dfeb80bcec738e13590dbc Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 15 Jun 2017 01:01:54 +0200 Subject: [PATCH] CProgressBarCache: ensure clean iterator inside pbcClear() For safety only. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/5573d17cce9a9fbcc2952e6a0a5607ca5cdf5478 Author: Thilo Graf Date: 2017-06-15 (Thu, 15 Jun 2017) --- src/gui/components/cc_item_progressbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/components/cc_item_progressbar.cpp b/src/gui/components/cc_item_progressbar.cpp index 570bb0de9..d3ea4831f 100644 --- a/src/gui/components/cc_item_progressbar.cpp +++ b/src/gui/components/cc_item_progressbar.cpp @@ -198,6 +198,7 @@ void CProgressBarCache::pbcClear() if ((*it)->pbc_passive) free((*it)->pbc_passive); delete (*it); + (*it) = NULL; } pbCache.clear(); }