Merge pull request #53135 from briansemrau/fix-ref-leak
This commit is contained in:
commit
622b656c40
2 changed files with 8 additions and 1 deletions
|
|
@ -304,6 +304,13 @@ public:
|
|||
v->_get_obj().id = ObjectID();
|
||||
}
|
||||
|
||||
static void update_object_id(Variant *v) {
|
||||
const Object *o = v->_get_obj().obj;
|
||||
if (o) {
|
||||
v->_get_obj().id = o->get_instance_id();
|
||||
}
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ static void *get_opaque_pointer(Variant *v) {
|
||||
switch (v->type) {
|
||||
case Variant::NIL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue