Skip to content

Commit

Permalink
SecureCharArrayWriter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiokot committed Sep 4, 2019
1 parent c4a9bb5 commit 3848a93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit 3848a93

Please sign in to comment.