[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:23 +0000 (13:35 +0900)
commite7a12f36238713ba4766b769a370908985117a96
treec3c63878a14ee26a1e17beb297485c573a693718
parent10f1096f28887994ddb56aeaa2174b5e4a4666c8
[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