release the reference to the derived encryption key when clearing a loaded wallet

This commit is contained in:
Craig Raw
2026-08-20 13:37:20 +02:00
parent bad92ba6e9
commit 4b373714a9
@@ -7,7 +7,7 @@ import java.util.Map;
public class WalletAndKey implements Comparable<WalletAndKey> {
private final Wallet wallet;
private final ECKey encryptionKey;
private ECKey encryptionKey;
private final Key key;
private final Map<WalletAndKey, Storage> childWallets;
@@ -38,6 +38,7 @@ public class WalletAndKey implements Comparable<WalletAndKey> {
if(key != null) {
key.clear();
}
encryptionKey = null;
}
@Override