summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-03-26 11:04:07 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2013-03-26 11:04:07 +0000
commitc3d8bcb56cb2596c6fec7d5043536cfa9e804f2e (patch)
tree6a24624a731dc79014dcb4e1a1fe5376e8e2bb15 /src
parent143b7fd304d03cef733aa83a011714102fda7194 (diff)
eeze: Decrement eeze init count also in error cases
Diffstat (limited to 'src')
-rw-r--r--src/lib/eeze/eeze_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eeze/eeze_main.c b/src/lib/eeze/eeze_main.c
index 0437b46a26..5965dab685 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -27,7 +27,7 @@ eeze_init(void)
27 return _eeze_init_count; 27 return _eeze_init_count;
28 28
29 if (!eina_init()) 29 if (!eina_init())
30 return 0; 30 return --_eeze_init_count;
31 31
32 _eeze_udev_log_dom = eina_log_domain_register("eeze_udev", EINA_COLOR_CYAN); 32 _eeze_udev_log_dom = eina_log_domain_register("eeze_udev", EINA_COLOR_CYAN);
33 if (_eeze_udev_log_dom < 0) 33 if (_eeze_udev_log_dom < 0)
@@ -94,7 +94,7 @@ eina_net_fail:
94 _eeze_udev_log_dom = -1; 94 _eeze_udev_log_dom = -1;
95eina_fail: 95eina_fail:
96 eina_shutdown(); 96 eina_shutdown();
97 return 0; 97 return --_eeze_init_count;
98} 98}
99 99
100EAPI int 100EAPI int