From 3d9dcd8bc2a28155819373319f50d1e473345e9b 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/emotion@71548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/emotion_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/emotion_main.c b/src/lib/emotion_main.c index a5e9694..74c6eeb 100644 --- a/src/lib/emotion_main.c +++ b/src/lib/emotion_main.c @@ -383,6 +383,11 @@ emotion_shutdown(void) { Emotion_Webcam *ew; + if (_emotion_webcams_count <= 0) + { + EINA_LOG_ERR("Init count not greater than 0 in shutdown."); + return EINA_FALSE; + } if (--_emotion_webcams_count) return EINA_TRUE; EINA_LIST_FREE(_emotion_webcams->webcams, ew) -- 2.7.4