From 2be8f197002a942f81d926cad265f385d65d3019 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 30 May 2012 10:08:41 +0000 Subject: 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. SVN revision: 71548 --- src/lib/eet_lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index a350d11..bef99b3 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -633,6 +633,11 @@ shutdown_eina: EAPI int eet_shutdown(void) { + if (eet_init_count <= 0) + { + ERR("Init count not greater than 0 in shutdown."); + return 0; + } if (--eet_init_count != 0) return eet_init_count; -- cgit v1.2.1