mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5100 Regression Test : Avoid deleteLater() to have full control on memory management timing
This commit is contained in:
parent
41fbd7bcf5
commit
8113782dd6
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user