forked from qt-creator/qt-creator
Fix potential startup crashes
Change-Id: Id0f03b4fa9ff6a8f0f5b0de11fe51c3729065140 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
e2eb591c4c
commit
de9c2d3bf0
@@ -106,12 +106,14 @@ void Find::destroy()
|
||||
{
|
||||
delete m_instance;
|
||||
m_instance = 0;
|
||||
delete d->m_currentDocumentFind;
|
||||
delete d->m_findToolBar;
|
||||
delete d->m_findDialog;
|
||||
ExtensionSystem::PluginManager::removeObject(d->m_searchResultWindow);
|
||||
delete d->m_searchResultWindow;
|
||||
delete d;
|
||||
if (d) {
|
||||
delete d->m_currentDocumentFind;
|
||||
delete d->m_findToolBar;
|
||||
delete d->m_findDialog;
|
||||
ExtensionSystem::PluginManager::removeObject(d->m_searchResultWindow);
|
||||
delete d->m_searchResultWindow;
|
||||
delete d;
|
||||
}
|
||||
}
|
||||
|
||||
Find *Find::instance()
|
||||
|
||||
Reference in New Issue
Block a user