Add VERIFY check in Utility::ExecuteDeferredInitializers

Coverity Bug ID: 1167738
This commit is contained in:
Gunnar Beutner 2015-03-03 09:26:21 +01:00
parent f515d5415c
commit 2867d79514
1 changed files with 3 additions and 1 deletions

View File

@ -341,8 +341,10 @@ void Utility::ExecuteDeferredInitializers(void)
if (!GetDeferredInitializers().get()) if (!GetDeferredInitializers().get())
return; return;
BOOST_FOREACH(const boost::function<void(void)>& callback, *GetDeferredInitializers().get()) BOOST_FOREACH(const boost::function<void(void)>& callback, *GetDeferredInitializers().get()) {
VERIFY(callback);
callback(); callback();
}
GetDeferredInitializers().reset(); GetDeferredInitializers().reset();
} }