Commit 6c3c5a89 authored by Martin Straka's avatar Martin Straka

Fixed potential application crash when application is shutdown

parent 3842127c
......@@ -124,7 +124,10 @@ void GovWrapper::initGovServices(void)
void GovWrapper::clearGovServices(void)
/* This log can cause crash when application is shutdown.
* Log device can be deallocate earlier than GovWrapper object.
foreach (const Gov::Service *gs, m_govServices.values()) {
delete const_cast<Gov::Service *>(gs);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment