From: Mike Blumenkrantz Date: Thu, 13 Aug 2015 17:55:16 +0000 (-0400) Subject: delete data device resources from hash using client X-Git-Tag: upstream/0.20.0~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4956fe3304687fe988e1ea736128e9bf1fcb7699;p=platform%2Fupstream%2Fenlightenment.git delete data device resources from hash using client fixes crash when currently-entered wl surface is destroyed --- diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c index 9f87d37..1759898 100644 --- a/src/bin/e_comp_wl_data.c +++ b/src/bin/e_comp_wl_data.c @@ -419,7 +419,8 @@ static const struct wl_data_device_interface _e_data_device_interface = static void _e_comp_wl_data_device_cb_unbind(struct wl_resource *resource) { - eina_hash_del_by_key(e_comp->wl_comp_data->mgr.data_resources, &resource); + struct wl_client *wc = wl_resource_get_client(resource); + eina_hash_del_by_key(e_comp->wl_comp_data->mgr.data_resources, &wc); } static void