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 committed by Mike Blumenkrantz
parent b6cfd00993
commit bc54ad58f7
1 changed files with 4 additions and 0 deletions

View File

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