diff options
author | raster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-05-30 10:08:41 +0000 |
---|---|---|
committer | raster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-05-30 10:08:41 +0000 |
commit | 81eaa7765064a856a2bc9cfc97d7905db3a7435b (patch) | |
tree | fa728c76e59d5529824ab27980d7e2fb9eb74373 | |
parent | 78a30247d5bbb45688f892a300940c001471fb89 (diff) | |
download | ethumb-81eaa7765064a856a2bc9cfc97d7905db3a7435b.tar.gz ethumb-81eaa7765064a856a2bc9cfc97d7905db3a7435b.tar.bz2 ethumb-81eaa7765064a856a2bc9cfc97d7905db3a7435b.zip |
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.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ethumb@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
-rw-r--r-- | src/lib/ethumb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ethumb.c b/src/lib/ethumb.c index 07ac716..973f5e6 100644 --- a/src/lib/ethumb.c +++ b/src/lib/ethumb.c @@ -202,6 +202,11 @@ ethumb_init(void) EAPI int ethumb_shutdown(void) { + if (initcount <= 0) + { + EINA_LOG_ERR("Init count not greater than 0 in shutdown."); + return 0; + } initcount--; if (initcount == 0) { |