Edje_Edit: fix defect found by Coverity in ...state_tween_insert_at

Check constraits before creating image structures

CID 1351558
This commit is contained in:
Vitalii Vorobiov 2016-02-19 11:22:07 +00:00
parent f2111102cf
commit 5c0c87cbe8
1 changed files with 4 additions and 1 deletions

View File

@ -8761,7 +8761,10 @@ edje_edit_state_tween_insert_at(Evas_Object *obj, const char *part, const char *
img = (Edje_Part_Description_Image *)pd;
if ((unsigned)place > img->image.tweens_count)
return EINA_FALSE;
{
free(i);
return EINA_FALSE;
}
/* add to tween list */
tmp = realloc(img->image.tweens,