summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/lib/ethumb.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-05-30 10:08:41 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-05-30 10:08:41 +0000
commit318bd30043f1d317ade4d7d3a3213c793e5f7cc4 (patch)
tree04c31f444de220769776b00555575ff79cbdcaa4 /legacy/ethumb/src/lib/ethumb.c
parentb5e054507a19b2d731511fcef6414ab44b06d943 (diff)
This is a small change, so I won't changelog it (or backport), but
make _shutdown() funcs across efl complain and be unhappy if you shutdown to < 0 shutdowns and not pull init count below 0. SVN revision: 71548
Diffstat (limited to 'legacy/ethumb/src/lib/ethumb.c')
-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 {