forked from enlightenment/efl
eeze: Decrement eeze init count also in error cases
This commit is contained in:
parent
143b7fd304
commit
c3d8bcb56c
|
@ -27,7 +27,7 @@ eeze_init(void)
|
||||||
return _eeze_init_count;
|
return _eeze_init_count;
|
||||||
|
|
||||||
if (!eina_init())
|
if (!eina_init())
|
||||||
return 0;
|
return --_eeze_init_count;
|
||||||
|
|
||||||
_eeze_udev_log_dom = eina_log_domain_register("eeze_udev", EINA_COLOR_CYAN);
|
_eeze_udev_log_dom = eina_log_domain_register("eeze_udev", EINA_COLOR_CYAN);
|
||||||
if (_eeze_udev_log_dom < 0)
|
if (_eeze_udev_log_dom < 0)
|
||||||
|
@ -94,7 +94,7 @@ eina_net_fail:
|
||||||
_eeze_udev_log_dom = -1;
|
_eeze_udev_log_dom = -1;
|
||||||
eina_fail:
|
eina_fail:
|
||||||
eina_shutdown();
|
eina_shutdown();
|
||||||
return 0;
|
return --_eeze_init_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
|
|
Loading…
Reference in New Issue