Author: spouliot
Date: 2006-03-20 13:58:31 -0500 (Mon, 20 Mar 2006)
New Revision: 58195
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/image.c
Log:
image.c: Free the filter in GdipGetImageGraphicsContext.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2006-03-20 18:56:38 UTC (rev 58194)
+++ trunk/libgdiplus/src/ChangeLog 2006-03-20 18:58:31 UTC (rev 58195)
@@ -1,5 +1,6 @@
-2006-03-20 Sebastien Pouliot <[EMAIL PROTECTED]>
-
+2006-03-20 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * image.c: Free the filter in GdipGetImageGraphicsContext.
* pen.c: Use the GDI+ call to create the matrix (GdipCreateMatrix).
Delete the default (empty) matrix when cloning a pen. Delete the
matrix when disposing of the pen.
Modified: trunk/libgdiplus/src/image.c
===================================================================
--- trunk/libgdiplus/src/image.c 2006-03-20 18:56:38 UTC (rev 58194)
+++ trunk/libgdiplus/src/image.c 2006-03-20 18:58:31 UTC (rev 58195)
@@ -130,6 +130,7 @@
{
GpGraphics *gfx;
cairo_surface_t *surface;
+ cairo_pattern_t *filter;
GpBitmap* bmp = (GpBitmap *) image;
if (!image || !graphics)
@@ -146,8 +147,10 @@
cairo_surface_destroy (surface);
gfx->image = bmp;
- gfx->type = gtMemoryBitmap;
- cairo_pattern_set_filter (cairo_pattern_create_for_surface
(bmp->image.surface), gdip_get_cairo_filter (gfx->interpolation));
+ gfx->type = gtMemoryBitmap;
+ filter = cairo_pattern_create_for_surface (bmp->image.surface);
+ cairo_pattern_set_filter (filter, gdip_get_cairo_filter
(gfx->interpolation));
+ cairo_pattern_destroy (filter);
*graphics = gfx;
return Ok;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches