diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-12-04 10:58:59 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2020-12-06 08:20:33 -0700 |
commit | 87d73faa668b8b76333b1728a3f91f1e0438f2fd (patch) | |
tree | 21693fd162a091d1f9eae9e8aba7f93869b1f69e /platform/javascript/SCsub | |
parent | d834789f475d431b10dcaef8804cd75dcd8b47dd (diff) |
Fix base script not initialized properly in some cases
Storing script references to pointer only in result.script_type could
lead to losing the last reference, causing further conversions from
Script* to Ref<Script> to fail.
Now result.script_type_ref is always set first, and then cleared in the
specific case of the script being the owner, to avoid cyclic reference
issues.
Diffstat (limited to 'platform/javascript/SCsub')
0 files changed, 0 insertions, 0 deletions