diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2017-07-26 21:29:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 21:29:26 +0200 |
commit | 18e23ad4dcec0713fb24211be964ade35bff951d (patch) | |
tree | 28cbacd973338e3eee4db57b3aa188215f5a2c5e /core/reference.cpp | |
parent | 88bd18244bda74843ed6e0b99db106dffa4979bc (diff) | |
parent | db9dcbddbc9231d520a14eaa4e256c276273eeb7 (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.cpp | 3 |
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; |