Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_image_main.c 


Log Message:


no no no!
malloc! not calloc
why?
large chunks of memory are used for image pixels
why set them all to 0 THEN set them to their pixel values? it's harmless
having them uninitialized. the idea is to avoid zeroing out potentially
megabytes of data.


===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_image_main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evas_image_main.c   14 Jan 2004 18:11:03 -0000      1.8
+++ evas_image_main.c   15 Jan 2004 04:48:48 -0000      1.9
@@ -76,7 +76,7 @@
 void
 evas_common_image_surface_alloc(RGBA_Surface *is)
 {
-   is->data = calloc(1, is->w * is->h * sizeof(DATA32));
+   is->data = malloc(is->w * is->h * sizeof(DATA32));
 }
 
 void




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to