forked from enlightenment/efl
ecore_wayland: Making _ecore_wl_init_count not to go below zero in shutdown.
Summary: If _ecore_wl_init_count goes below zero, then there would be problem if someone calls ecore_wl_shutdown 1st and then ecore_wl_init later. So fixing this issue in ecore_wl_shutdown. @fix Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1571
This commit is contained in:
parent
cd1bc17c1b
commit
005cdf359d
|
@ -448,6 +448,7 @@ _ecore_wl_shutdown(Eina_Bool close)
|
|||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (_ecore_wl_init_count < 1) return 0;
|
||||
if (--_ecore_wl_init_count != 0) return _ecore_wl_init_count;
|
||||
if (!_ecore_wl_disp) return _ecore_wl_init_count;
|
||||
|
||||
|
|
Loading…
Reference in New Issue