diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-03 22:11:24 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-03 22:11:24 -0800 |
commit | f693bbd7a0811e66a44e7a413b338814b5559631 (patch) | |
tree | fa0fd5c081465f297e8b07ba5c66443ac67440dd /qt-ui | |
parent | 396106e307eacc4b4fbd79a995a0fafdc7f91e6b (diff) | |
download | subsurface-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.cpp | 1 |
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; } } |