devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=566b27d15e833f95d88e4af5dcdedcba8e1fae02

commit 566b27d15e833f95d88e4af5dcdedcba8e1fae02
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Nov 5 08:05:07 2013 +0000

    If we cannot create the data_offer resource, then cleanup and exit
    nicely.
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_comp_wl.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 9f04932..82a52c5 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -793,6 +793,12 @@ wl_data_source_send_offer(struct wl_data_source *source, 
struct wl_resource *tar
    offer->resource = 
      wl_resource_create(wl_resource_get_client(target),
                         &wl_data_offer_interface, 1, 0);
+   if (!offer->resource)
+     {
+        free(offer);
+        return NULL;
+     }
+
    wl_resource_set_implementation(offer->resource, &_e_data_offer_interface, 
                                   offer, _destroy_data_offer);
 

-- 


Reply via email to