Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/loaders/tiff


Modified Files:
        evas_image_load_tiff.c 


Log Message:
don't free a pointer that is not allocated. Clean messages

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/tiff/evas_image_load_tiff.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_image_load_tiff.c      23 Apr 2006 15:38:23 -0000      1.2
+++ evas_image_load_tiff.c      28 May 2006 06:22:10 -0000      1.3
@@ -145,13 +145,13 @@
    if (!tif)
       return 0;
 
-   strcpy(txt, "Cannot be processed by libtiff");
+   strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff");
    if (!TIFFRGBAImageOK(tif, txt))
      {
         TIFFClose(tif);
         return 0;
      }
-   strcpy(txt, "Cannot begin reading tiff");
+   strcpy(txt, "Evas Tiff loader: cannot begin reading tiff");
    if (!TIFFRGBAImageBegin(& tiff_image, tif, 0, txt))
      {
         TIFFClose(tif);
@@ -213,13 +213,13 @@
    if (!tif)
       return 0;
 
-   strcpy(txt, "Cannot be processed by libtiff");
+   strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff");
    if (!TIFFRGBAImageOK(tif, txt))
      {
         TIFFClose(tif);
         return 0;
      }
-   strcpy(txt, "Cannot begin reading tiff");
+   strcpy(txt, "Evas Tiff loader: cannot begin reading tiff");
    if (!TIFFRGBAImageBegin((TIFFRGBAImage *) & rgba_image, tif, 0, txt))
      {
         TIFFClose(tif);
@@ -256,9 +256,7 @@
 
    if (!rast)
      {
-        fprintf(stderr, "imlib2-tiffloader: Out of memory\n");
-
-        _TIFFfree(rast);
+        fprintf(stderr, "Evas Tiff loader: out of memory\n");
 
         TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image);
         TIFFClose(tif);
@@ -268,7 +266,7 @@
 
    if (rgba_image.rgba.put.any == NULL)
      {
-        fprintf(stderr, "imlib2-tiffloader: No put function");
+        fprintf(stderr, "Evas Tiff loader: no put function");
 
        evas_common_image_surface_free(im->image);
         _TIFFfree(rast);




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to