Release Script owner references before setting it. This hopefully prevents extremely high reference counts.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
817bf387ac
commit
d4a080714c
|
@ -24,6 +24,7 @@ AngelScriptScript::AngelScriptScript(const ArbUt::OptionalBorrowedPtr<void>& own
|
||||||
THROW("Script was created with owner value, but with unknown owner type.")
|
THROW("Script was created with owner value, but with unknown owner type.")
|
||||||
}
|
}
|
||||||
auto* handle = GetAngelscriptOwner();
|
auto* handle = GetAngelscriptOwner();
|
||||||
|
handle->ReleaseReferences(resolver->GetEngine());
|
||||||
handle->Set(owner.GetValue(), ownerType);
|
handle->Set(owner.GetValue(), ownerType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue