else
{
cc->current = calloc(1, sizeof(Colorclass)); //actually Elm_Color_Overlay
+ if (!cc->current) return;
+
memcpy(cc->current, ecc, sizeof(Elm_Color_Overlay));
cc->current->name = eina_stringshare_ref(ecc->name);
}
Colorclass *lcc;
ecc2 = malloc(sizeof(Edje_Color_Class));
+ if (!ecc2) continue;
+
memcpy(ecc2, ecc, sizeof(Edje_Color_Class));
ecc2->name = eina_stringshare_add(ecc->name);
if (tl_cb)
EINA_ITERATOR_FOREACH(it, ecc)
{
ecc2 = malloc(sizeof(Edje_Color_Class));
+ if (!ecc2) continue;
+
memcpy(ecc2, ecc, sizeof(Edje_Color_Class));
ecc2->name = eina_stringshare_add(ecc->name);
if (tl_cb)