devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f2bcb7d50e4c3e692b1fcc7185da647abe201468
commit f2bcb7d50e4c3e692b1fcc7185da647abe201468 Author: Chris Michael <[email protected]> Date: Thu Oct 23 10:33:40 2014 -0400 ecore-wayland: Add error message for calling shutdown without calling init Summary: If someone calls ecore_wayland_shutdown without first calling ecore_wl_init, then the init count is wrong. Warn the caller. @fix Signed-off-by: Chris Michael <[email protected]> --- src/lib/ecore_wayland/ecore_wl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index 20c6d3b..c9a81ca 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -448,7 +448,12 @@ _ecore_wl_shutdown(Eina_Bool close) { LOGFN(__FILE__, __LINE__, __FUNCTION__); - if (_ecore_wl_init_count < 1) return 0; + if (_ecore_wl_init_count < 1) + { + ERR("Ecore_Wayland Shutdown called without Ecore_Wayland Init"); + return 0; + } + if (--_ecore_wl_init_count != 0) return _ecore_wl_init_count; if (!_ecore_wl_disp) return _ecore_wl_init_count; --
