GetOwner() returns wrong pointer in OnOwnerChanged() callback - PLM P130409-6758
authorjaewon7.cho <jaewon7.cho@samsung.com>
Tue, 16 Apr 2013 06:26:07 +0000 (15:26 +0900)
committerjaewon7.cho <jaewon7.cho@samsung.com>
Tue, 16 Apr 2013 07:15:25 +0000 (16:15 +0900)
Change-Id: Iebd17f42d4498edac969220305f60f77c82222b4
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
src/ui/FUi_Window.cpp

index 91078e4..cdbb602 100644 (file)
@@ -252,8 +252,9 @@ _Window::SetOwner(_Control* pOwner)
                pOwner->AttachOwnee(*this);
        }
 
-       GetWindowDelegate().OnOwnerChanged(__pOwner);
+       _Control* pOldOwner = __pOwner;
        __pOwner = pOwner;
+       GetWindowDelegate().OnOwnerChanged(pOldOwner);
 }
 
 result