summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/nativescript/nativescript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp
index cb38768f32..0a070988ac 100644
--- a/modules/nativescript/nativescript.cpp
+++ b/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
}
}