evas/textgrid: Fix memory leak.

Free allocated color before we return in the failure case.
This commit is contained in:
Stefan Schmidt 2013-05-28 13:38:01 +01:00
parent f30af4969d
commit 0a20c045b2
1 changed files with 1 additions and 0 deletions

View File

@ -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);