Fixed JIRA #S1-9623
authorJihoon Chung <jihoon.chung@samsung.com>
Fri, 26 Oct 2012 10:04:45 +0000 (19:04 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Tue, 30 Oct 2012 08:19:11 +0000 (17:19 +0900)
[Issue#] JIRA #S1-9623
[Problem] After called "process,crashed" callback in the UI side, crash is occurred.
[Cause] Wrong callback data is handled.
[Solution] Make correct to use correct callback data
[SCMRequest] N/A

Change-Id: I3d08ea5415ca1195b6b1886e70be008bb06b6d09

src/view/webkit/view_logic.cpp

index f826247..697d26b 100644 (file)
@@ -1054,14 +1054,14 @@ void ViewLogic::loadProgressFinishedCallback(
 }
 
 void ViewLogic::processCrashedCallback(
-        void* /*data*/,
+        void* data,
         Evas_Object* /*obj*/,
         void* eventInfo)
 {
     LogInfo("processCrashedCallback");
-    Assert(eventInfo);
+    Assert(data);
     ViewLogic const * const view =
-            static_cast<ViewLogic const * const>(eventInfo);
+            static_cast<ViewLogic const * const>(data);
     if (!view->m_cbs->webCrash.empty()) {
         view->m_cbs->webCrash();
     }