forked from enlightenment/efl
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:
parent
a393a90ccc
commit
67917c27fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue