discomfitor pushed a commit to branch enlightenment-0.20.

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

commit bc54ad58f7ff15493bbb767340d6c477383e5134
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Wed Jul 13 18:08:02 2016 +0200

    e_comp_data: NULL out source once it is freed
    
    Otherwise the pointer is removed when the next drag starts, so this
    makes debugging dnd problems easier.
---
 src/bin/e_comp_wl_data.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 630015c..76df9ca 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -163,6 +163,10 @@ _e_comp_wl_data_source_cb_resource_destroy(struct 
wl_resource *resource)
    wl_signal_emit(&source->destroy_signal, source);
 
    _mime_types_free(source);
+
+   if (e_comp_wl->drag_source == source)
+     e_comp_wl->drag_source = NULL;
+
    free(source);
 }
 

-- 


Reply via email to