Unregister Processor when SceneView is destructed 29/316329/1
authorSeungho Baek <sbsh.baek@samsung.com>
Mon, 19 Aug 2024 10:16:31 +0000 (19:16 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Mon, 19 Aug 2024 10:16:31 +0000 (19:16 +0900)
 - When SceneView is destructed without Unregiste process, crash can be occured.

Change-Id: I0ad544bd9462f92d70b94da4af094f8a4b1d92f0
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp

index d004bffe8e75611a51edd261bcf30b801b28285d..11b0a67fdbe831c35b963bb9d13ca062986eacf5 100644 (file)
@@ -370,6 +370,8 @@ SceneView::~SceneView()
     mCaptureContainer.clear();
     ResetCaptureTimer();
 
+    Adaptor::Get().UnregisterProcessorOnce(*this);
+
     // Request image resource GC
     Dali::Scene3D::Internal::ImageResourceLoader::RequestGarbageCollect();
   }