remove strdup call for prevent memory leak on wtz_splitscreen_region callback
and remove useless checker of the hook result
Change-Id: I91884c140eba316664cd7cf559f719c850974354
struct wl_resource *resource, const char *appid)
{
E_Desk_Area *eda;
- char *appid_tmp;
if (!(eda = wl_resource_get_user_data(resource))) return;
- appid_tmp = strdup(appid);
-
- // call the E_DESK_AREA_HOOK_ASSIGN_APPID hook
- if (!e_desk_area_hook_call(eda, E_DESK_AREA_HOOK_SET_APPID, (void *)appid_tmp))
- {
- ERR("e_desk_zoom_set: fail get eout");
- return;
- }
+ e_desk_area_hook_call(eda, E_DESK_AREA_HOOK_SET_APPID, (void *)appid);
}
static const struct wtz_splitscreen_region_interface