summaryrefslogtreecommitdiff
path: root/legacy/ethumb
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ethumb')
-rw-r--r--legacy/ethumb/src/lib/ethumb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/legacy/ethumb/src/lib/ethumb.c b/legacy/ethumb/src/lib/ethumb.c
index 07ac716ac7..973f5e657c 100644
--- a/legacy/ethumb/src/lib/ethumb.c
+++ b/legacy/ethumb/src/lib/ethumb.c
@@ -202,6 +202,11 @@ ethumb_init(void)
202EAPI int 202EAPI int
203ethumb_shutdown(void) 203ethumb_shutdown(void)
204{ 204{
205 if (initcount <= 0)
206 {
207 EINA_LOG_ERR("Init count not greater than 0 in shutdown.");
208 return 0;
209 }
205 initcount--; 210 initcount--;
206 if (initcount == 0) 211 if (initcount == 0)
207 { 212 {