reverted my change 7852b7e8

This commit is contained in:
Daniel Marjamäki 2012-09-15 21:13:31 +02:00
parent f410db6499
commit 7753258eca
2 changed files with 3 additions and 1 deletions

View File

@ -5,4 +5,4 @@ compiler:
script:
- make test
- $CXX -o cppcheck -O2 cli/*.cpp lib/*.cpp -Ilib
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=duplicateBranch --suppress=stlIfStrFind -q cli gui lib -igui/test
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=unreadVariable --suppress=duplicateBranch --suppress=stlIfStrFind -q cli gui lib -igui/test

View File

@ -171,6 +171,7 @@ void ResultsView::Save(const QString &filename, Report::Type type)
msgBox.exec();
}
delete report;
report = NULL;
} else {
QMessageBox msgBox;
msgBox.setText(tr("Failed to save the report."));
@ -288,6 +289,7 @@ void ResultsView::ReadErrorsXml(const QString &filename)
msgBox.exec();
}
delete report;
report = NULL;
} else {
QMessageBox msgBox;
msgBox.setText(tr("Failed to read the report."));