From 8e341fdb71f0d4fbf280409ec89a6d40224a3424 Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 5 Aug 2010 10:00:16 +0000 Subject: [PATCH] * edje: fix edje image generation. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50832 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/edje_convert.c b/src/lib/edje_convert.c index af8551c..354a53b 100644 --- a/src/lib/edje_convert.c +++ b/src/lib/edje_convert.c @@ -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; -- 2.7.4