ecore_wl2: only destroy source when not needed anymore.

Otherwise we are destroying the source before getting dnd_finished or
cancled events, which is a problem.
This commit is contained in:
Marcel Hollerbach 2016-07-06 14:54:53 +02:00
parent c300678391
commit 63e88bdcfa
1 changed files with 0 additions and 3 deletions

View File

@ -595,9 +595,6 @@ ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input)
wl_array_init(&input->data.types);
}
if (input->data.source) wl_data_source_destroy(input->data.source);
input->data.source = NULL;
ev = calloc(1, sizeof(Ecore_Wl2_Event_Dnd_End));
if (!ev) return;