Browse Source

Merge pull request #64302 from neikeq/unreference-callback-regr-from-44691448

Fix instance binding unreference callback regression
Clay John 3 years ago
parent
commit
6923076850
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/object/ref_counted.cpp

+ 2 - 1
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;