mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: fix memory leaks.
This commit is contained in:
committed by
Magne Sjaastad
parent
1736c01dfa
commit
d8eb34c00d
@@ -18,7 +18,7 @@
|
||||
RiuWellLogPlot::RiuWellLogPlot( RimDepthTrackPlot* plotDefinition, QWidget* parent )
|
||||
: RiuMultiPlotPage( plotDefinition, parent )
|
||||
{
|
||||
m_verticalTrackScrollBar = new QScrollBar( nullptr );
|
||||
m_verticalTrackScrollBar = new QScrollBar( this );
|
||||
m_verticalTrackScrollBar->setOrientation( Qt::Vertical );
|
||||
m_verticalTrackScrollBar->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred );
|
||||
|
||||
@@ -27,7 +27,7 @@ RiuWellLogPlot::RiuWellLogPlot( RimDepthTrackPlot* plotDefinition, QWidget* pare
|
||||
|
||||
connect( m_verticalTrackScrollBar, SIGNAL( valueChanged( int ) ), this, SLOT( slotSetMinDepth( int ) ) );
|
||||
|
||||
m_horizontalTrackScrollBar = new QScrollBar( nullptr );
|
||||
m_horizontalTrackScrollBar = new QScrollBar( this );
|
||||
m_horizontalTrackScrollBar->setOrientation( Qt::Horizontal );
|
||||
m_horizontalTrackScrollBar->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
|
||||
|
||||
@@ -37,6 +37,15 @@ RiuWellLogPlot::RiuWellLogPlot( RimDepthTrackPlot* plotDefinition, QWidget* pare
|
||||
connect( m_horizontalTrackScrollBar, SIGNAL( valueChanged( int ) ), this, SLOT( slotSetMinDepth( int ) ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellLogPlot::~RiuWellLogPlot()
|
||||
{
|
||||
delete m_horizontalTrackScrollBarLayout.data();
|
||||
delete m_verticalTrackScrollBarLayout.data();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user