This is a small change, so I won't changelog it (or backport), but
authorCarsten Haitzler <raster@rasterman.com>
Wed, 30 May 2012 10:08:41 +0000 (10:08 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 30 May 2012 10:08:41 +0000 (10:08 +0000)
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

src/lib/elm_main.c

index 1c273c1..5a459b6 100644 (file)
@@ -185,6 +185,11 @@ elm_init(int    argc,
 EAPI int
 elm_shutdown(void)
 {
+   if (_elm_init_count <= 0)
+     {
+        ERR("Init count not greater than 0 in shutdown.");
+        return 0;
+     }
    _elm_init_count--;
    if (_elm_init_count > 0) return _elm_init_count;
    _elm_win_shutdown();