From 67917c27fe1279e76b752504909dc66ed662607f Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Wed, 13 Jul 2016 17:38:05 +0200 Subject: [PATCH] ecore_wl2: clear out read_data and len they are passed to the event struct, and later freed in there. --- src/lib/ecore_wl2/ecore_wl2_dnd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c b/src/lib/ecore_wl2/ecore_wl2_dnd.c index 7e17d86..414bfc4 100644 --- a/src/lib/ecore_wl2/ecore_wl2_dnd.c +++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c @@ -257,7 +257,9 @@ _selection_data_read(void *data, Ecore_Fd_Handler *fdh) source->fdh = NULL; event->data = source->read_data; + source->read_data = NULL; event->len = source->len; + source->len = 0; if (source->input->drag.source) ecore_event_add(ECORE_WL2_EVENT_DND_DATA_READY, event, _selection_data_ready_cb_free, NULL); -- 2.7.4