Fix the crash while disposing C# Animation object 95/216895/1
authorRichard Huang <r.huang@samsung.com>
Mon, 4 Nov 2019 14:40:04 +0000 (14:40 +0000)
committerRichard Huang <r.huang@samsung.com>
Mon, 4 Nov 2019 14:40:04 +0000 (14:40 +0000)
Change-Id: I985b451bad2c3141a45afe0fc3925f29fb27ddeb

dali-csharp-binder/src/view-wrapper-impl-wrap.cpp

index 219a1bd..e38a1f2 100755 (executable)
@@ -79,7 +79,7 @@ void SwigDirector_ViewWrapperImpl::OnSizeSet(Dali::Vector3 const &targetSize) {
 }
 
 void SwigDirector_ViewWrapperImpl::OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize) {
-  swig_callbackOnSizeAnimation(&animation, (Dali::Vector3 *) &targetSize);
+  swig_callbackOnSizeAnimation(new Dali::Animation(animation), (Dali::Vector3 *) &targetSize);
 
   Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
 }