lumberyard
lumberyard copied to clipboard
Avoid dangling pointer in variant reflection.
The callback will sometimes store the pointer to the class element (fourth arg), e.g. InstanceDataHierarchy::Build
Issue #, if available:
Description of changes: Title says it all. Current code takes a pointer to a temporary variable which is stored and later accessed after it is no longer valid.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Hi @yuriy0, thanks for contributing to LY we'll take a look at the change.