forked from enlightenment/efl
evas/textgrid: Fix memory leak.
Free allocated color before we return in the failure case.
This commit is contained in:
parent
f30af4969d
commit
0a20c045b2
|
@ -1430,6 +1430,7 @@ _palette_set(Eo *eo_obj, void *_pd, va_list *list)
|
|||
if (!c)
|
||||
{
|
||||
ERR("Evas can not allocate memory");
|
||||
free(color);
|
||||
return;
|
||||
}
|
||||
eina_array_push(palette, c);
|
||||
|
|
Loading…
Reference in New Issue