mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-06 11:05:48 -05:00
Merge branch 'release/2.6.2' into develop
This commit is contained in:
commit
e1c2537084
32 changed files with 1109 additions and 851 deletions
|
|
@ -158,7 +158,7 @@ void enterInteractiveMode(const QStringList& arguments)
|
|||
|
||||
auto cmd = Commands::getCommand(args[0]);
|
||||
if (!cmd) {
|
||||
err << QObject::tr("Unknown command %1").arg(args[0]) << "\n";
|
||||
err << QObject::tr("Unknown command %1").arg(args[0]) << endl;
|
||||
continue;
|
||||
} else if (cmd->name == "quit" || cmd->name == "exit") {
|
||||
break;
|
||||
|
|
@ -167,6 +167,7 @@ void enterInteractiveMode(const QStringList& arguments)
|
|||
cmd->currentDatabase = currentDatabase;
|
||||
cmd->execute(args);
|
||||
currentDatabase = cmd->currentDatabase;
|
||||
cmd->currentDatabase.reset();
|
||||
}
|
||||
|
||||
if (currentDatabase) {
|
||||
|
|
@ -246,6 +247,10 @@ int main(int argc, char** argv)
|
|||
arguments.removeFirst();
|
||||
int exitCode = command->execute(arguments);
|
||||
|
||||
if (command->currentDatabase) {
|
||||
command->currentDatabase.reset();
|
||||
}
|
||||
|
||||
#if defined(WITH_ASAN) && defined(WITH_LSAN)
|
||||
// do leak check here to prevent massive tail of end-of-process leak errors from third-party libraries
|
||||
__lsan_do_leak_check();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue