forked from enlightenment/enlightenment
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:
parent
c0353da074
commit
fde72ce193
|
@ -373,6 +373,10 @@ _e_comp_wl_data_source_cb_resource_destroy(struct wl_resource *resource)
|
||||||
wl_signal_emit(&source->destroy_signal, source);
|
wl_signal_emit(&source->destroy_signal, source);
|
||||||
|
|
||||||
_mime_types_free(source);
|
_mime_types_free(source);
|
||||||
|
|
||||||
|
if (e_comp_wl->drag_source == source)
|
||||||
|
e_comp_wl->drag_source = NULL;
|
||||||
|
|
||||||
free(source);
|
free(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue