Fix memory leak

This commit is contained in:
Gaute Lindkvist 2019-09-09 13:14:20 +02:00
parent 71c4642f13
commit 81cb97ead7
2 changed files with 0 additions and 2 deletions

View File

@ -1013,7 +1013,6 @@ void RimWellPltPlot::initAfterRead()
{
RimWellLogPlot& wellLogPlot = dynamic_cast<RimWellLogPlot&>( *this );
wellLogPlot = std::move( *m_wellLogPlot_OBSOLETE.value() );
m_wellLogPlot_OBSOLETE = nullptr;
}
if ( m_showPlotTitle_OBSOLETE() && !m_showTitleInPlot() )

View File

@ -955,7 +955,6 @@ void RimWellRftPlot::initAfterRead()
{
RimWellLogPlot& wellLogPlot = dynamic_cast<RimWellLogPlot&>( *this );
wellLogPlot = std::move( *m_wellLogPlot_OBSOLETE.value() );
m_wellLogPlot_OBSOLETE = nullptr;
}
if ( m_showPlotTitle_OBSOLETE() && !m_showTitleInPlot() )
{