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.
This commit is contained in:
Marcel Hollerbach 2016-07-13 18:08:02 +02:00
parent c0353da074
commit fde72ce193
1 changed files with 4 additions and 0 deletions

View File

@ -373,6 +373,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);
}