From b951a885970620d604ca752a931f852558e30627 Mon Sep 17 00:00:00 2001 From: raster Date: Wed, 30 May 2012 10:08:41 +0000 Subject: [PATCH] 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/ecore@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/ecore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c index 7fbe943..5dfe3d6 100644 --- a/src/lib/ecore/ecore.c +++ b/src/lib/ecore/ecore.c @@ -228,6 +228,12 @@ ecore_shutdown(void) * take a lock here because _ecore_event_shutdown() does callbacks */ _ecore_lock(); + if (_ecore_init_count <= 0) + { + ERR("Init count not greater than 0 in shutdown."); + _ecore_unlock(); + return 0; + } if (--_ecore_init_count != 0) goto unlock; -- 2.7.4