Fix memory leak in DatabaseTabWidget::openDatabase function

This commit is contained in:
frostasm 2017-10-04 19:17:34 +03:00 committed by Jonathan White
parent 5098866413
commit 4e903e4c50
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -181,6 +181,7 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
lockFile->tryLock(); lockFile->tryLock();
} }
} else { } else {
delete lockFile;
return; return;
} }
} }