[NUI] Fix LottieAnimationView not to reference disposed delegate
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 29 Mar 2024 03:49:57 +0000 (12:49 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Fri, 29 Mar 2024 04:35:29 +0000 (13:35 +0900)
commit5e7e3d5684778899daf8f347d161c33f2db44f03
tree7db948aa91ca75ebb08dde15d6a3c8da9bd0a901
parentccad664c273ef6c74ac25b92e68d2b8f470ae2ed
[NUI] Fix LottieAnimationView not to reference disposed delegate

Delegate rootCallback of LottieAnimationView is called by multi threads
for lottie dynamic properties.

This causes the following issues.
- Delegate rootCallback of disposed LottieAnimationView can be
  referenced.
- Local variables in RootCallback is disposed by multi threads.

To resolve the above issues, the followings are done.
- Delegate rootCallback of LottieAnimationView is changed to be static.
- Local variables in RootCallback is not disposed.
src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs