Revert "[Tizen] Add more guard code to detect memory corruption"
authorsunghyun kim <scholb.kim@samsung.com>
Wed, 27 Dec 2023 07:04:48 +0000 (16:04 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Wed, 27 Dec 2023 07:04:48 +0000 (16:04 +0900)
This reverts commit c72d48d38f1751eb7c2ef8784e82ba98fd4341ab.

dali-toolkit/internal/visuals/visual-base-impl.cpp
dali-toolkit/internal/visuals/visual-base-impl.h

index 4522c78..e270fa5 100644 (file)
@@ -159,7 +159,6 @@ Visual::Base::Base(VisualFactoryCache& factoryCache, FittingMode fittingMode, To
 : mImpl(new Impl(fittingMode, type)),
   mFactoryCache(factoryCache)
 {
-  mImplOrigin = mImpl;
 }
 
 Visual::Base::~Base()
@@ -660,12 +659,6 @@ void Visual::Base::DoSetOffScene(Actor& actor)
 
 bool Visual::Base::IsOnScene() const
 {
-  if(DALI_UNLIKELY(mImplOrigin != mImpl))
-  {
-    DALI_LOG_ERROR("Fatal error!! Memory corruption occured! this : %p\n", this);
-    DALI_LOG_ERROR("mImpl : %p, mImplOrigin : %p\n", mImpl, mImplOrigin);
-    DALI_ASSERT_ALWAYS(false);
-  }
   return mImpl->mFlags & Impl::IS_ON_SCENE;
 }
 
index f03c64c..7ebf239 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_VISUAL_H
 
 /*
- * Copyright (c) 2023 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.
@@ -511,7 +511,6 @@ private:
 protected:
   struct Impl;
   Impl*               mImpl;
-  Impl*               mImplOrigin{nullptr}; ///< Check for memory corruption
   VisualFactoryCache& mFactoryCache;
 };