* edje: fix edje image generation.
authorcedric <cedric>
Thu, 5 Aug 2010 10:00:16 +0000 (10:00 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 5 Aug 2010 10:00:16 +0000 (10:00 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50832 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_convert.c

index af8551c..354a53b 100644 (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;