Skip to content

Commit

Permalink
Re #7876. Move delete until after last use.
Browse files Browse the repository at this point in the history
m_data is used within saveSettings(), so we'd better not delete it
until after that!
  • Loading branch information
RussellTaylor committed Sep 5, 2013
1 parent 6d28582 commit f7597b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/SliceViewer/src/SliceViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ SliceViewer::SliceViewer(QWidget *parent)
/// Destructor
SliceViewer::~SliceViewer()
{
delete m_data;
saveSettings();
delete m_data;
// Don't delete Qt objects, I think these are auto-deleted
}

Expand Down

0 comments on commit f7597b9

Please sign in to comment.