Author: jordi
Date: 2005-04-28 07:19:19 -0400 (Thu, 28 Apr 2005)
New Revision: 43712

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/tiffcodec.c
Log:
2005-04-28 Jordi Mas i Hernandez  <[EMAIL PROTECTED]>

        * tiffcodec.c: Inits Byte and ByteCount to avoid releasing not allocated
        blocks GdipDisposeImage. Fixes testgdi.c test.



Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2005-04-28 10:46:48 UTC (rev 43711)
+++ trunk/libgdiplus/src/ChangeLog      2005-04-28 11:19:19 UTC (rev 43712)
@@ -1,3 +1,8 @@
+2005-04-28 Jordi Mas i Hernandez  <[EMAIL PROTECTED]>
+
+       * tiffcodec.c: Inits Byte and ByteCount to avoid releasing not allocated
+       blocks GdipDisposeImage. Fixes testgdi.c test.
+
 2005-04-27 Jordi Mas i Hernandez  <[EMAIL PROTECTED]>
 
        * graphics.c:

Modified: trunk/libgdiplus/src/tiffcodec.c
===================================================================
--- trunk/libgdiplus/src/tiffcodec.c    2005-04-28 10:46:48 UTC (rev 43711)
+++ trunk/libgdiplus/src/tiffcodec.c    2005-04-28 11:19:19 UTC (rev 43712)
@@ -274,6 +274,9 @@
        int j=0;
        BitmapData data;
 
+       data.ByteCount = 0;
+       data.Bytes = NULL;
+
        if (tif) {
 
                TIFFRGBAImage tifimg;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to