mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-19 01:24:53 -05:00
(#435) Bugfix - made sure that correct pointer is assigned
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ void RimWellPathCollection::addWellLogs(const QStringList& filePaths)
|
||||
RimWellPath* wellPath = wellPathByName(logFileInfo->wellName());
|
||||
if (!wellPath)
|
||||
{
|
||||
RimWellPath* wellPath = new RimWellPath();
|
||||
wellPath = new RimWellPath();
|
||||
wellPath->setCollection(this);
|
||||
wellPaths.push_back(wellPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user