summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-03-09 16:10:49 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-03-09 16:17:58 -0800
commit0e8a20a0a6d3b12dbc492c07d061bb9b5b618b37 (patch)
treeb5c0707bc73ed2a3846d9427051cac0b6449376b
parentaf7a5ef5d920043a39cb3add08580387687b2b59 (diff)
ecore_drm: avoid crash during shutdown due to Ecore_Event queue.
-rw-r--r--src/lib/ecore_drm/ecore_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index 431ff6b..fb8c593 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -150,6 +150,10 @@ ecore_drm_shutdown(void)
150 /* if we are still in use, decrement init count and get out */ 150 /* if we are still in use, decrement init count and get out */
151 if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count; 151 if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
152 152
153 ecore_event_type_flush(ECORE_DRM_EVENT_ACTIVATE,
154 ECORE_DRM_EVENT_OUTPUT,
155 ECORE_DRM_EVENT_SEAT_ADD);
156
153 /* free the list of devices */ 157 /* free the list of devices */
154 lists = eina_list_clone(ecore_drm_devices_get()); 158 lists = eina_list_clone(ecore_drm_devices_get());
155 EINA_LIST_FREE(lists, dev) 159 EINA_LIST_FREE(lists, dev)