diff --git a/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt b/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt index 18d47d4..57e09a0 100644 --- a/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt +++ b/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt @@ -72,8 +72,8 @@ class SecureCharArrayWriter(initialSize: Int) : CharArrayWriter(initialSize) { * Erases the buffer and resets chars count to 0. */ fun erase() { - super.close() + close() buf.erase() - count = 0 + reset() } } \ No newline at end of file