edje: immediately return NULL when no color classes exist in edje_color_class_active_iterator_new()

This commit is contained in:
Mike Blumenkrantz 2015-04-03 21:25:25 -04:00
parent d4a1044811
commit 12acac7035
1 changed files with 1 additions and 0 deletions

View File

@ -721,6 +721,7 @@ edje_color_class_active_iterator_new(void)
{
Edje_Active_Color_Class_Iterator *it;
if (!_edje_color_class_member_hash) return NULL;
it = calloc(1, sizeof (Edje_Active_Color_Class_Iterator));
if (!it) return NULL;