[M120 Migration] Fix coverity issue
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / wrt / wrt_widget_host.cc
index 1513e10..6fa53a8 100644 (file)
@@ -78,6 +78,8 @@ WrtWidgetHost* WrtWidgetHost::Get() {
   if (!g_wrt_widget_host.Get().get())
     g_wrt_widget_host.Get().reset(new WrtWidgetHost);
   return g_wrt_widget_host.Get().get();
+#else
+  return nullptr;
 #endif
 }
 
@@ -102,7 +104,7 @@ void WrtWidgetHost::GetUrlForRequest(
       return;
 #endif
 
-  std::move(callback).Run(GURL());
+  std::move(callbacks_[callback_id]).Run(GURL());
   callbacks_.erase(callback_id);
 }