Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in init.cpp

This commit is contained in:
Eric Lombrozo
2013-01-23 12:48:35 -08:00
parent e5cefb9be1
commit e6fe8e77fb
2 changed files with 3 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ void Shutdown()
}
bitdb.Flush(true);
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
UnregisterAllWallets();
delete pwalletMain;
}