summaryrefslogtreecommitdiff
path: root/core/reference.cpp
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-07-26 21:29:26 +0200
committerGitHub <noreply@github.com>2017-07-26 21:29:26 +0200
commit18e23ad4dcec0713fb24211be964ade35bff951d (patch)
tree28cbacd973338e3eee4db57b3aa188215f5a2c5e /core/reference.cpp
parent88bd18244bda74843ed6e0b99db106dffa4979bc (diff)
parentdb9dcbddbc9231d520a14eaa4e256c276273eeb7 (diff)
Merge pull request #9882 from endragor/nativescript-refcount
Forward refcount changes to NativeScriptInstance
Diffstat (limited to 'core/reference.cpp')
-rw-r--r--core/reference.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/reference.cpp b/core/reference.cpp
index c55f8a7fe3..060608eacb 100644
--- a/core/reference.cpp
+++ b/core/reference.cpp
@@ -74,7 +74,8 @@ bool Reference::unreference() {
bool die = refcount.unref();
if (get_script_instance()) {
- die = die && get_script_instance()->refcount_decremented();
+ bool script_ret = get_script_instance()->refcount_decremented();
+ die = die && script_ret;
}
return die;