The checks during window destruction are mostly redundant. Also add a recursion
guard to purge_windows_list.
Change-Id: I90170a145737f742f3c77627da547903f7d8b4c5
static void _purge_windows_list(WindowTrackerData *wtd)
{
+ static Eina_Bool is_purging = EINA_FALSE;
+
+ if (is_purging)
+ return;
+
+ is_purging = EINA_TRUE;
+
DEBUG("purging");
WindowInfo *wi;
Eina_List *l, *l_prev;
if (!wi_top)
app_tracker_null_context_switch(wtd->user_data);
}
+
+ is_purging = EINA_FALSE;
}
static void _window_info_print(WindowInfo *wi)