#5100 Regression Test : Avoid deleteLater() to have full control on memory management timing

This commit is contained in:
Magne Sjaastad 2019-12-05 13:33:58 +01:00
parent 41fbd7bcf5
commit 8113782dd6

View File

@ -1099,7 +1099,8 @@ void RiaGuiApplication::deleteMainPlotWindow()
{ {
if ( m_mainPlotWindow ) if ( m_mainPlotWindow )
{ {
m_mainPlotWindow->deleteLater(); m_mainPlotWindow->setParent( nullptr );
delete m_mainPlotWindow;
m_mainPlotWindow = nullptr; m_mainPlotWindow = nullptr;
} }
} }