Skip to content

Commit

Permalink
Re #7876. Fix memory leak.
Browse files Browse the repository at this point in the history
I'm not sure if this constructor actually can throw, but regardless
there's no need to create it on the heap.
  • Loading branch information
RussellTaylor committed Sep 4, 2013
1 parent 4953b37 commit 5972346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/Mantid/MantidWSIndexDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void Interval::init(int start, int end)
//----------------------------------
IntervalList::IntervalList(void)
{

}

IntervalList::IntervalList(QString intervals)
Expand Down Expand Up @@ -714,7 +714,7 @@ bool IntervalList::isParsable(const QString &input)
{
try
{
new IntervalList(input);
IntervalList(input);
return true;
}
catch (std::exception&)
Expand Down

0 comments on commit 5972346

Please sign in to comment.