Fix prevent errors
authorjaewon7.cho <jaewon7.cho@samsung.com>
Fri, 5 Apr 2013 05:41:17 +0000 (14:41 +0900)
committerjaewon7.cho <jaewon7.cho@samsung.com>
Fri, 5 Apr 2013 05:41:17 +0000 (14:41 +0900)
Change-Id: Ifaa4af7371e532ac11e2549d013d99cfc5de9eff
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
src/ui/FUi_Control.cpp
src/ui/FUi_Window.cpp

index 61050da..3bb8246 100755 (executable)
@@ -2828,11 +2828,10 @@ _Control::SetVisibleState(bool visibleState)
        if (changed)\r
        {\r
                GetControlDelegate().OnVisibleStateChanged();\r
-               CallOnAncestorVisibleStateChanged();\r
-\r
                _Control* pParent = GetParent();\r
                if (pParent)\r
                {\r
+                       CallOnAncestorVisibleStateChanged();\r
                        pParent->GetControlDelegate().OnChildVisibleStateChanged(*this);\r
                }\r
 \r
index 8010a4d..d84e008 100755 (executable)
@@ -98,6 +98,9 @@ _Window::~_Window(void)
                delete __pLayer;
                __pLayer = NULL;
        }
+\r
+       delete __pDimmingLayer;
+       __pDimmingLayer = null;
 
        __pRootVisualElement =NULL;
 }