* edje: fix edje image generation.

SVN revision: 50832
This commit is contained in:
Cedric BAIL 2010-08-05 10:00:16 +00:00
parent 05143be132
commit ec632e5788
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ _edje_description_convert(int type,
img->image.tweens_count = eina_list_count(oed->image.tween_list);
img->image.tweens = calloc(img->image.tweens_count,
sizeof (Edje_Part_Image_Id*));
if (!img->image.tweens)
if (img->image.tweens_count > 0 && !img->image.tweens)
{
eina_mempool_free(ce->mp.IMAGE, img);
return NULL;