aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_ews.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-19 11:14:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-19 11:14:37 +0900
commitff24ac2d6ddaafba49ae5100f17fe37e5d874140 (patch)
treeb98881dd9ccb98896bbc8784a91e6b61a7403b41 /src/lib/ecore_evas/ecore_evas_ews.c
parentscroller: Introducing Efl.Ui.Scroller (diff)
downloadefl-ff24ac2d6ddaafba49ae5100f17fe37e5d874140.tar.gz
efl: Reset ecore event types on init
This fixes cycles of init/shutdown/init where ecore event types would become invalid, since they are now stored in a dynamic array rather than a statically stored array. The risk here is that if a module of EFL tends to init/shutdown in a "normal" scenario then the event type array will grow in a leaking manner. This could be fixed by resetting those event ID's only when the loop actually exits (EFL_EVENT_DEL on the main loop). I'm not using EFL_EVENT_DEL in this patch as this would add too many event callbacks to the main loop object, which may result in slightly slower event calls to it, affecting the overall performance.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_ews.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_ews.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_ews.c b/src/lib/ecore_evas/ecore_evas_ews.c
index ee40f00d31..77a33f7094 100644
--- a/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/src/lib/ecore_evas/ecore_evas_ews.c
@@ -684,7 +684,6 @@ static const Ecore_Evas_Engine_Func _ecore_ews_engine_func =
void
_ecore_evas_ews_events_init(void)
{
- if (ECORE_EVAS_EWS_EVENT_MANAGER_CHANGE != 0) return;
ECORE_EVAS_EWS_EVENT_MANAGER_CHANGE = ecore_event_type_new();
ECORE_EVAS_EWS_EVENT_ADD = ecore_event_type_new();
ECORE_EVAS_EWS_EVENT_DEL = ecore_event_type_new();