Author: spouliot
Date: 2006-03-23 15:09:52 -0500 (Thu, 23 Mar 2006)
New Revision: 58380
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/lineargradientbrush.c
Log:
lineargradientbrush.c: Set the count value when cloning and Free the matrix
when destroying the brush.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2006-03-23 20:08:01 UTC (rev 58379)
+++ trunk/libgdiplus/src/ChangeLog 2006-03-23 20:09:52 UTC (rev 58380)
@@ -1,3 +1,8 @@
+2006-03-23 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * lineargradientbrush.c: Set the count value when cloning and Free the
+ matrix when destroying the brush.
+
2006-03-23 Sebastien Pouliot <[EMAIL PROTECTED]>
* lineargradientbrush.c: Don't lose the original context 'ct' when
Modified: trunk/libgdiplus/src/lineargradientbrush.c
===================================================================
--- trunk/libgdiplus/src/lineargradientbrush.c 2006-03-23 20:08:01 UTC (rev
58379)
+++ trunk/libgdiplus/src/lineargradientbrush.c 2006-03-23 20:09:52 UTC (rev
58380)
@@ -111,6 +111,7 @@
if (newbrush->presetColors == NULL)
goto NO_PRESET;
+ newbrush->presetColors->count = linear->presetColors->count;
if (linear->presetColors->count > 0) {
newbrush->presetColors->colors = (ARGB *) GdipAlloc
(linear->presetColors->count * sizeof (ARGB));
if (newbrush->presetColors->colors == NULL)
@@ -201,6 +202,11 @@
linear->pattern = NULL;
}
+ if (linear->matrix) {
+ GdipDeleteMatrix (linear->matrix);
+ linear->matrix = NULL;
+ }
+
GdipFree (linear);
return Ok;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches