From: Eunki, Hong Date: Tue, 7 Feb 2023 13:47:10 +0000 (+0900) Subject: [NUI.Scene3D] Do not dispose camera internally X-Git-Tag: accepted/tizen/unified/20231205.024657~460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2ff26bf393cf47888f071138e23069c34e9cfea;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI.Scene3D] Do not dispose camera internally SceneView's camera is not an instance object anymore. It can be holded by app side. So, if we dispose it inside of CameraTransition Function, It become sudden dead. Actually, Dali side camera object still alive, but the NUI.Camera handle is dereferenced. So, If app try to access that camera, crash occured. Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs index f84af37..e3aa23a 100755 --- a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs +++ b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs @@ -395,8 +395,6 @@ namespace Tizen.NUI.Scene3D SelectCamera(index); Camera destination = GetSelectedCamera(); CameraTransition(source, destination, durationMilliSeconds, alphaFunction); - source.Dispose(); - destination.Dispose(); } /// @@ -422,8 +420,6 @@ namespace Tizen.NUI.Scene3D SelectCamera(name); Camera destination = GetSelectedCamera(); CameraTransition(source, destination, durationMilliSeconds, alphaFunction); - source.Dispose(); - destination.Dispose(); } ///