Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_object_main.c Log Message: bad *alloc! bad sizeof usage. bad! :) =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_main.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -3 -r1.71 -r1.72 --- evas_object_main.c 12 Jun 2008 13:22:26 -0000 1.71 +++ evas_object_main.c 19 Jun 2008 04:09:33 -0000 1.72 @@ -647,7 +647,7 @@ if (obj->delete_me) return; if (!obj->size_hints) - obj->size_hints = calloc(1, sizeof(*obj->size_hints)); + obj->size_hints = calloc(1, sizeof(Evas_Size_Hints)); obj->size_hints->min.w = w; obj->size_hints->min.h = h; @@ -705,7 +705,7 @@ if (obj->delete_me) return; if (!obj->size_hints) - obj->size_hints = calloc(1, sizeof(*obj->size_hints)); + obj->size_hints = calloc(1, sizeof(Evas_Size_Hints)); obj->size_hints->max.w = w; obj->size_hints->max.h = h; @@ -763,7 +763,7 @@ if (obj->delete_me) return; if (!obj->size_hints) - obj->size_hints = calloc(1, sizeof(*obj->size_hints)); + obj->size_hints = calloc(1, sizeof(Evas_Size_Hints)); obj->size_hints->request.w = w; obj->size_hints->request.h = h; @@ -826,7 +826,7 @@ if (obj->delete_me) return; if (!obj->size_hints) - obj->size_hints = calloc(1, sizeof(*obj->size_hints)); + obj->size_hints = calloc(1, sizeof(Evas_Size_Hints)); obj->size_hints->aspect.mode = aspect; obj->size_hints->aspect.size.w = w; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs