From f693bbd7a0811e66a44e7a413b338814b5559631 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 3 Mar 2014 22:11:24 -0800 Subject: Don't use error after free We need to reset the error pointer to NULL for this to work. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/mainwindow.cpp') 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; } } -- cgit v1.2.3-70-g09d2