(Canvas) Unregister processor properly 42/279942/1
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 19 Aug 2022 08:58:16 +0000 (17:58 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 19 Aug 2022 08:58:16 +0000 (17:58 +0900)
Change-Id: I45c5667b28913517e87ba1e2a30a19b6e9686e5f

dali-toolkit/internal/controls/canvas-view/canvas-view-impl.cpp

index 39253d0..e298f10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include "canvas-view-impl.h"
 
 // EXTERNAL INCLUDES
+#include <dali/devel-api/rendering/texture-devel.h>
 #include <dali/devel-api/scripting/scripting.h>
 #include <dali/integration-api/adaptor-framework/adaptor.h>
 #include <dali/public-api/object/type-registry-helper.h>
 #include <dali/public-api/object/type-registry.h>
-#include <dali/devel-api/rendering/texture-devel.h>
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/devel-api/controls/control-devel.h>
@@ -73,7 +73,7 @@ CanvasView::~CanvasView()
 
   if(Adaptor::IsAvailable())
   {
-    Adaptor::Get().UnregisterProcessor(*this);
+    Adaptor::Get().UnregisterProcessor(*this, true);
   }
 }
 
@@ -196,7 +196,7 @@ void CanvasView::AddRasterizationTask()
 
 void CanvasView::ApplyRasterizedImage(Texture rasterizedTexture)
 {
-  if (rasterizedTexture && rasterizedTexture.GetWidth() != 0 && rasterizedTexture.GetHeight() != 0)
+  if(rasterizedTexture && rasterizedTexture.GetWidth() != 0 && rasterizedTexture.GetHeight() != 0)
   {
     if(!mTextureSet)
     {