From 821f546b0e78e4e97ade10a80e65772bec5c71af 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/embryo@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/embryo_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/embryo_main.c b/src/lib/embryo_main.c index 0b01b11..3c57ec7 100644 --- a/src/lib/embryo_main.c +++ b/src/lib/embryo_main.c @@ -2,6 +2,7 @@ # include "config.h" #endif +#include #include #include @@ -29,6 +30,11 @@ embryo_init(void) EAPI int embryo_shutdown(void) { + if (_embryo_init_count <= 0) + { + printf("%s:%i Init count not greater than 0 in shutdown.", __FUNCTION__, __LINE__); + return 0; + } if (--_embryo_init_count != 0) return _embryo_init_count; -- 2.7.4