Explorar o código

Merge pull request #9911 from karroffel/nativescript-init-call

[NativeScript] fix mutex double lock
Thomas Herzog %!s(int64=8) %!d(string=hai) anos
pai
achega
64e26f98e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}
 }