mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
[NativeScript] fix mutex double lock
In 3c53b35
a bug got introduced where a mutex gets locked twice
instead of locked and then unlocked.
This path fixes that.
This commit is contained in:
parent
3c53b3560f
commit
aae8accadd
@ -792,7 +792,7 @@ NativeScriptInstance::~NativeScriptInstance() {
|
||||
script->instance_owners.erase(owner);
|
||||
|
||||
#ifndef NO_THREADS
|
||||
script->owners_lock->lock();
|
||||
script->owners_lock->unlock();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user