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>
This commit is contained in:
Dirk Hohndel 2014-03-03 22:11:24 -08:00
parent 396106e307
commit f693bbd7a0

View file

@ -983,6 +983,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
failedParses.append(fileNames.at(i));
showError(error);
free(error);
error = NULL;
}
}