devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=41b0eda0d74d9761dca32e2df1f843569a6e0d49

commit 41b0eda0d74d9761dca32e2df1f843569a6e0d49
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Nov 5 08:26:59 2013 +0000

    When binding to data_device manager, if we cannot create the resource
    then notify the client and get out.
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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 6dd02b7..2f23abf 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

-- 


Reply via email to