#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 2f2a2188fe
commit cebe0485da

View File

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