Author: jordi
Date: 2005-12-09 12:59:00 -0500 (Fri, 09 Dec 2005)
New Revision: 54167
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/graphics.c
trunk/libgdiplus/src/image.c
Log:
2005-12-09 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
* graphics.c, image.c: Unreference the surface properly. Now, we do
not leak those and cairo_surface_finish is called.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2005-12-09 16:37:22 UTC (rev 54166)
+++ trunk/libgdiplus/src/ChangeLog 2005-12-09 17:59:00 UTC (rev 54167)
@@ -1,3 +1,8 @@
+2005-12-09 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+ * graphics.c, image.c: Unreference the surface properly. Now, we do
+ not leak those and cairo_surface_finish is called.
+
2005-12-07 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
* graphics.c: Fixes 76923
Modified: trunk/libgdiplus/src/graphics.c
===================================================================
--- trunk/libgdiplus/src/graphics.c 2005-12-09 16:37:22 UTC (rev 54166)
+++ trunk/libgdiplus/src/graphics.c 2005-12-09 17:59:00 UTC (rev 54167)
@@ -322,6 +322,8 @@
w, h);
*graphics = gdip_graphics_new (surface);
+ cairo_surface_destroy (surface);
+
if (!*graphics)
return OutOfMemory;
@@ -354,6 +356,7 @@
*graphics = gdip_graphics_new(surface);
+ cairo_surface_destroy (surface);
(*graphics)->bounds.Width = width;
(*graphics)->bounds.Height = height;
Modified: trunk/libgdiplus/src/image.c
===================================================================
--- trunk/libgdiplus/src/image.c 2005-12-09 16:37:22 UTC (rev 54166)
+++ trunk/libgdiplus/src/image.c 2005-12-09 17:59:00 UTC (rev 54167)
@@ -137,6 +137,7 @@
bmp->data.Width, bmp->data.Height,
bmp->data.Stride);
gfx = gdip_graphics_new (surface);
+ cairo_surface_destroy (surface);
gfx->image = bmp;
gfx->type = gtMemoryBitmap;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches