PVS sudio thought this was odd and it was a bit. not a real issue as a
mem alloc failure herw would still be fatal and simply a crash... as
opposed to a clean "out of mem" and fatal exit then...
error out eally was not finding originally allocated color and the
malloc should have been a mem_alloc() that guarantees a valid memory
return (or termintion of the process).
@fix
int i;
if (parent->map.colors_count == 0) return NULL;
- colors = malloc(sizeof(Edje_Map_Color *) * parent->map.colors_count);
+ colors = mem_alloc(sizeof(Edje_Map_Color *) * parent->map.colors_count);
for (i = 0; i < (int)parent->map.colors_count; i++)
{
Edje_Map_Color *c = mem_alloc(SZ(Edje_Map_Color));
if (!color)
{
- ERR("not enough memory");
+ ERR("Could not find allocated source when copying map colors");
exit(-1);
return NULL;
}