Merge "Fix the crash while disposing C# Animation object" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 4 Nov 2019 16:14:17 +0000 (16:14 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 4 Nov 2019 16:14:17 +0000 (16:14 +0000)
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);
 }