aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 22:11:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 22:11:24 -0800
commitf693bbd7a0811e66a44e7a413b338814b5559631 (patch)
treefa0fd5c081465f297e8b07ba5c66443ac67440dd /qt-ui
parent396106e307eacc4b4fbd79a995a0fafdc7f91e6b (diff)
downloadsubsurface-f693bbd7a0811e66a44e7a413b338814b5559631.tar.gz
Don't use error after free
We need to reset the error pointer to NULL for this to work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index d25635c66..4e8f46325 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -983,6 +983,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
failedParses.append(fileNames.at(i));
showError(error);
free(error);
+ error = NULL;
}
}