Fix for crash
authorHyun Lee <hyunn.lee@samsung.com>
Tue, 26 Mar 2013 11:37:08 +0000 (20:37 +0900)
committerHyun Lee <hyunn.lee@samsung.com>
Tue, 26 Mar 2013 11:37:08 +0000 (20:37 +0900)
Change-Id: Id552bb778e76c4f5beec12649a4d1f407bd21a12
Signed-off-by: Hyun Lee <hyunn.lee@samsung.com>
src/controls/FWebCtrl_WebImpl.cpp

index de762e6..dd93fda 100755 (executable)
@@ -1252,8 +1252,13 @@ void
 OnWebWindowClosedRequested(void* pUserData, Evas_Object* pView, void* pEventInfo)
 {
        _WebImpl* pChildImpl = reinterpret_cast< _WebImpl* >(pUserData);
+       SysAssertf(pChildImpl, "Failed to request");
+
        _WebImpl* pParentImpl = reinterpret_cast< _WebImpl* >(evas_object_data_get(pView, PARENT_WEB_CTRL));
-       SysAssertf(pChildImpl && pParentImpl, "Failed to request");
+       if (pParentImpl == null)
+       {
+               return;
+       }
 
        if (pParentImpl->GetUiEventListener())
        {