summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-08-18 14:53:31 -0600
committerGitHub <noreply@github.com>2022-08-18 14:53:31 -0600
commit692307685009671b09373ec9aed97e0fe5f6e196 (patch)
treebebe0d942840c4c0bf14221d917ec42f2a50b3f6 /core
parent903a3a641e3b7da90986fdbc4fdae28677b928a2 (diff)
parentf45f20285c33584d0887588eb33de78ff1fd16c3 (diff)
Merge pull request #64302 from neikeq/unreference-callback-regr-from-44691448
Fix instance binding unreference callback regression
Diffstat (limited to 'core')
-rw-r--r--core/object/ref_counted.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/ref_counted.cpp b/core/object/ref_counted.cpp
index 726e2c012c..cac2400744 100644
--- a/core/object/ref_counted.cpp
+++ b/core/object/ref_counted.cpp
@@ -85,7 +85,8 @@ bool RefCounted::unreference() {
_get_extension()->unreference(_get_extension_instance());
}
- die = die && _instance_binding_reference(false);
+ bool binding_ret = _instance_binding_reference(false);
+ die = die && binding_ret;
}
return die;