Browse Source

[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.
Karroffel 8 years ago
parent
commit
aae8accadd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/nativescript/nativescript.cpp

+ 1 - 1
modules/nativescript/nativescript.cpp

@@ -792,7 +792,7 @@ NativeScriptInstance::~NativeScriptInstance() {
 		script->instance_owners.erase(owner);
 
 #ifndef NO_THREADS
-		script->owners_lock->lock();
+		script->owners_lock->unlock();
 #endif
 	}
 }