ecore_wl2: clear out read_data and len

they are passed to the event struct, and later freed in there.
This commit is contained in:
Marcel Hollerbach 2016-07-13 17:38:05 +02:00
parent a393a90ccc
commit 67917c27fe
1 changed files with 2 additions and 0 deletions

View File

@ -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);