Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/loaders/xpm Modified Files: evas_image_load_xpm.c Log Message: and the xpm loader also leaked! =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/xpm/evas_image_load_xpm.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- evas_image_load_xpm.c 24 Sep 2006 13:31:19 -0000 1.8 +++ evas_image_load_xpm.c 24 Sep 2006 23:31:21 -0000 1.9 @@ -371,12 +371,15 @@ if (load_data) { + if (im->image->data) + evas_common_image_surface_dealloc(im->image); im->image->w = w; im->image->h = h; evas_common_image_surface_alloc(im->image); if (!im->image->data) { evas_common_image_surface_free(im->image); + im->image = NULL; free(cmap); free(line); fclose(f); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs