From: raster Date: Wed, 30 May 2012 10:08:41 +0000 (+0000) Subject: This is a small change, so I won't changelog it (or backport), but X-Git-Tag: submit/trunk/20120815.180907~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8c243028d84573fc9592505f39a35c744a7fde;p=profile%2Fivi%2Fedje.git 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/edje@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_main.c b/src/lib/edje_main.c index 846daf5..98b4647 100644 --- a/src/lib/edje_main.c +++ b/src/lib/edje_main.c @@ -170,6 +170,11 @@ _edje_lib_unref(void) EAPI int edje_shutdown(void) { + if (_edje_init_count <= 0) + { + ERR("Init count not greater than 0 in shutdown."); + return 0; + } if (--_edje_init_count != 0) return _edje_init_count;