From 183f979ab6d9a5be9a47a4646ffd56f4c9f60099 Mon Sep 17 00:00:00 2001 From: hermet Date: Mon, 26 Mar 2012 11:00:25 +0000 Subject: [PATCH] edje - + null checking. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@69635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/edje_util.c b/src/lib/edje_util.c index 4ce22b5..d9b73bd 100644 --- a/src/lib/edje_util.c +++ b/src/lib/edje_util.c @@ -673,9 +673,10 @@ edje_object_color_class_del(Evas_Object *obj, const char *color_class) Edje_Color_Class *cc = NULL; unsigned int i; - if (!color_class) return; - ed = _edje_fetch(obj); + + if ((!ed) || (!color_class)) return; + EINA_LIST_FOREACH(ed->color_classes, l, cc) { if (!strcmp(cc->name, color_class)) -- 2.7.4