discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ee5f17fe4f5763f34206d75ecf261e9c4d202f8f

commit ee5f17fe4f5763f34206d75ecf261e9c4d202f8f
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Aug 13 15:18:55 2015 -0400

    cnp: end wayland drag on allocation failure
    
    @fix
---
 src/lib/elm_cnp.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 9eddb10..e5e63bf 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -3217,7 +3217,11 @@ _wl_dropable_data_handle(Wl_Cnp_Selection *sel, char 
*data, size_t size)
    char *s = NULL;
 
    s = (char*)eina_memdup((unsigned char*)data, size, 0);
-   if (!s) return;
+   if (!s)
+     {
+        ecore_wl_dnd_drag_end(ecore_wl_input_get());
+        return;
+     }
    sdata.action = ELM_XDND_ACTION_COPY;
 
    if (savedtypes.textreq)

-- 


Reply via email to