aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 2b5c6b1737..84318eac0a 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -257,3 +257,10 @@ void StopWallets() {
pwallet->Flush(true);
}
}
+
+void CloseWallets() {
+ for (CWalletRef pwallet : vpwallets) {
+ delete pwallet;
+ }
+ vpwallets.clear();
+}