ecore_drm: avoid crash during shutdown due to Ecore_Event queue.

This commit is contained in:
Cedric BAIL 2017-03-09 16:10:49 -08:00
parent af7a5ef5d9
commit 0e8a20a0a6
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ ecore_drm_shutdown(void)
/* if we are still in use, decrement init count and get out */
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 */
lists = eina_list_clone(ecore_drm_devices_get());
EINA_LIST_FREE(lists, dev)