From 0871a5aee82a83aed83389e4ef5ef6987bf11de6 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: http://svn.enlightenment.org/svn/e/trunk/eina@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/eina_main.c b/src/lib/eina_main.c index 5cf77e7..2dc9b30 100644 --- a/src/lib/eina_main.c +++ b/src/lib/eina_main.c @@ -307,6 +307,11 @@ eina_init(void) EAPI int eina_shutdown(void) { + if (_eina_main_count <= 0) + { + ERR("Init count not greater than 0 in shutdown."); + return 0; + } _eina_main_count--; if (EINA_UNLIKELY(_eina_main_count == 0)) { -- 2.7.4