This is a small change, so I won't changelog it (or backport), but
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 30 May 2012 10:08:41 +0000 (10:08 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_main.c

index b02405d..271ccd7 100644 (file)
@@ -77,6 +77,11 @@ evas_init(void)
 EAPI int
 evas_shutdown(void)
 {
+   if (_evas_init_count <= 0)
+     {
+        EINA_LOG_ERR("Init count not greater than 0 in shutdown.");
+        return 0;
+     }
    if (--_evas_init_count != 0)
      return _evas_init_count;