Author: toshok
Date: 2007-06-22 05:57:36 -0400 (Fri, 22 Jun 2007)
New Revision: 80534
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/value.cpp
Log:
2007-06-22 Chris Toshok <[EMAIL PROTECTED]>
* value.cpp (Value): the copy ctor is definitely corrupting memory
in the MATRIX case - we need to allocate the destination matrix.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-22 09:34:07 UTC (rev 80533)
+++ trunk/moon/src/ChangeLog 2007-06-22 09:57:36 UTC (rev 80534)
@@ -1,3 +1,8 @@
+2007-06-22 Chris Toshok <[EMAIL PROTECTED]>
+
+ * value.cpp (Value): the copy ctor is definitely corrupting memory
+ in the MATRIX case - we need to allocate the destination matrix.
+
2007-06-21 Chris Toshok <[EMAIL PROTECTED]>
* Makefile.am: not that anyone should be installing this yet,
Modified: trunk/moon/src/value.cpp
===================================================================
--- trunk/moon/src/value.cpp 2007-06-22 09:34:07 UTC (rev 80533)
+++ trunk/moon/src/value.cpp 2007-06-22 09:57:36 UTC (rev 80534)
@@ -70,6 +70,7 @@
u.double_array->basic.refcount++;
break;
case Type::MATRIX:
+ u.matrix = (Matrix*) g_malloc (sizeof (Matrix));
memcpy (u.matrix, v.u.matrix, sizeof(Matrix));
break;
case Type::COLOR:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches