forked from enlightenment/efl
ecore_drm: avoid crash during shutdown due to Ecore_Event queue.
This commit is contained in:
parent
af7a5ef5d9
commit
0e8a20a0a6
|
@ -150,6 +150,10 @@ ecore_drm_shutdown(void)
|
||||||
/* if we are still in use, decrement init count and get out */
|
/* if we are still in use, decrement init count and get out */
|
||||||
if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
|
if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
|
||||||
|
|
||||||
|
ecore_event_type_flush(ECORE_DRM_EVENT_ACTIVATE,
|
||||||
|
ECORE_DRM_EVENT_OUTPUT,
|
||||||
|
ECORE_DRM_EVENT_SEAT_ADD);
|
||||||
|
|
||||||
/* free the list of devices */
|
/* free the list of devices */
|
||||||
lists = eina_list_clone(ecore_drm_devices_get());
|
lists = eina_list_clone(ecore_drm_devices_get());
|
||||||
EINA_LIST_FREE(lists, dev)
|
EINA_LIST_FREE(lists, dev)
|
||||||
|
|
Loading…
Reference in New Issue