From 7e18ac19069e023e36f4f19c480991b4ef631cbb Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Wed, 27 Dec 2023 16:04:48 +0900 Subject: [PATCH] Revert "[Tizen] Add more guard code to detect memory corruption" This reverts commit c72d48d38f1751eb7c2ef8784e82ba98fd4341ab. --- dali-toolkit/internal/visuals/visual-base-impl.cpp | 7 ------- dali-toolkit/internal/visuals/visual-base-impl.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/dali-toolkit/internal/visuals/visual-base-impl.cpp b/dali-toolkit/internal/visuals/visual-base-impl.cpp index 4522c78..e270fa5 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.cpp +++ b/dali-toolkit/internal/visuals/visual-base-impl.cpp @@ -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; } diff --git a/dali-toolkit/internal/visuals/visual-base-impl.h b/dali-toolkit/internal/visuals/visual-base-impl.h index f03c64c..7ebf239 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-impl.h @@ -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; }; -- 2.7.4