From 41b0eda0d74d9761dca32e2df1f843569a6e0d49 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 5 Nov 2013 08:26:59 +0000 Subject: [PATCH] When binding to data_device manager, if we cannot create the resource then notify the client and get out. Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 6dd02b76a..2f23abf00 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1217,8 +1217,13 @@ _bind_manager(struct wl_client *client, void *data EINA_UNUSED, uint32_t version struct wl_resource *res; res = wl_resource_create(client, &wl_data_device_manager_interface, 1, id); - if (res) - wl_resource_set_implementation(res, &_e_manager_interface, NULL, NULL); + if (!res) + { + wl_client_post_no_memory(client); + return; + } + + wl_resource_set_implementation(res, &_e_manager_interface, NULL, NULL); } static void