diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-01 15:07:06 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-01 15:07:06 +0200 |
commit | 6edd06e56685df3ea237830f3602e7e580e1f338 (patch) | |
tree | 5dddfac15eea24ec70b79fedaa81bddae7da3e48 /core/bind/core_bind.cpp | |
parent | ab9c14cca63757ff47dfc6c38b35baf2a32a51ac (diff) | |
download | redot-engine-6edd06e56685df3ea237830f3602e7e580e1f338.tar.gz |
Remove thread to prevent memory leak
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r-- | core/bind/core_bind.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index da7b15da94..242c5b3bf1 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -2700,6 +2700,8 @@ Variant _Thread::wait_to_finish() { target_method = StringName(); target_instance = NULL; userdata = Variant(); + if (thread) + memdelete(thread); thread = NULL; return r; |