Fix static analysis issue 35/261035/1
authorjh9216.park <jh9216.park@samsung.com>
Fri, 9 Jul 2021 02:15:19 +0000 (22:15 -0400)
committerjh9216.park <jh9216.park@samsung.com>
Fri, 9 Jul 2021 02:15:19 +0000 (22:15 -0400)
- dereference freed object

Change-Id: Ib88a98dae833f0ae45f90e75d32ad3aa54c4856e
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
widget_viewer_sdk/src/view.cc

index ebfde01cce8c9a805b37f6921a31163fa6874f8b..457151fcb21241e9837e917b75601bc93386aeb2 100644 (file)
@@ -193,8 +193,8 @@ Eina_Bool View::LazyWidgetLoaderCb(void* data) {
   Widget* info = reinterpret_cast<Widget*>(data);
 
   LOGD("Lazy loader expired. load widget [%s]", info->GetId().c_str());
-  info->GetParent()->LoadWidget(info->GetId().c_str(), info);
   info->GetParent()->lazy_widget_loader_ = nullptr;
+  info->GetParent()->LoadWidget(info->GetId().c_str(), info);
 
   return ECORE_CALLBACK_CANCEL;
 }