mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
396106e307
commit
f693bbd7a0
1 changed files with 1 additions and 0 deletions
|
@ -983,6 +983,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
|
|||
failedParses.append(fileNames.at(i));
|
||||
showError(error);
|
||||
free(error);
|
||||
error = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue