summaryrefslogtreecommitdiff
path: root/core/crypto/hashing_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/crypto/hashing_context.cpp')
-rw-r--r--core/crypto/hashing_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/crypto/hashing_context.cpp b/core/crypto/hashing_context.cpp
index 0b21dead74..fb0dadfbab 100644
--- a/core/crypto/hashing_context.cpp
+++ b/core/crypto/hashing_context.cpp
@@ -104,7 +104,6 @@ void HashingContext::_create_ctx(HashType p_type) {
}
void HashingContext::_delete_ctx() {
-
switch (type) {
case HASH_MD5:
memdelete((CryptoCore::MD5Context *)ctx);
@@ -129,6 +128,7 @@ void HashingContext::_bind_methods() {
}
HashingContext::~HashingContext() {
- if (ctx != nullptr)
+ if (ctx != nullptr) {
_delete_ctx();
+ }
}