(#435) Bugfix - made sure that correct pointer is assigned

This commit is contained in:
Pål Hagen
2015-09-15 11:01:19 +02:00
parent 08e266c2f3
commit 7efd3daa8b
2 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ RimWellPath::RimWellPath()
//--------------------------------------------------------------------------------------------------
RimWellPath::~RimWellPath()
{
if (m_lasFileInfo)
if (m_lasFileInfo())
{
delete m_lasFileInfo;
}
@@ -358,7 +358,7 @@ void RimWellPath::updateFilePathsFromProjectPath()
//--------------------------------------------------------------------------------------------------
void RimWellPath::setLogFileInfo(RimWellLasFileInfo* logFileInfo)
{
if (m_lasFileInfo)
if (m_lasFileInfo())
{
delete m_lasFileInfo;
}