The patch is to add protection code for WGID:
2282441,228763
Change-Id: I88e8b853b7cf6b7179a29d6a3ea8e915eeeaf8fd
Signed-off-by: shayh <yuhong.sha@samsung.com>
rm_get_resource_list(static_cast<rm_rsc_category_e>(category), &list);
if (ret != RM_OK) {
TIZEN_MEDIA_LOG(ERROR) << "Cannot obtain resource list";
+ rm_free_resource_list(list);
return false;
}
const auto count = rm_resource_list_get_count(list);
rm_resource_list_h list;
if (rm_get_resource_list(RM_CATEGORY_SCALER_PROGRESSIVE, &list) != RM_OK) {
LOG(INFO) << "rm_get_resource_list failed";
+ rm_free_resource_list(list);
return count;
}
meta_data_info.GetValue(kKeyRouterLongPress) == "true") {
LOG(INFO) << "enable.default.focus.view is true or keyrouter.long.press is "
"true!!";
- rwhva()->MarkAsDefaultFocusedView();
+
+ auto view = rwhva();
+ if (view)
+ view->MarkAsDefaultFocusedView();
}
#endif
}