Author: rolf
Date: 2007-12-07 04:31:53 -0500 (Fri, 07 Dec 2007)
New Revision: 90898

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/animation.cpp
   trunk/moon/src/geometry.cpp
Log:
* animation.cpp, geometry.cpp: Fix a couple of memory leaks, detected
  by the javascript tests.

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-12-07 09:16:14 UTC (rev 90897)
+++ trunk/moon/src/ChangeLog    2007-12-07 09:31:53 UTC (rev 90898)
@@ -1,3 +1,8 @@
+2007-12-07  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * animation.cpp, geometry.cpp: Fix a couple of memory leaks, detected 
by the
+         javascript tests.
+
 2007-12-06  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * media.cpp (media_element_get_attributes): Added.

Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp        2007-12-07 09:16:14 UTC (rev 90897)
+++ trunk/moon/src/animation.cpp        2007-12-07 09:31:53 UTC (rev 90898)
@@ -1566,7 +1566,7 @@
 
 PointAnimationUsingKeyFrames::PointAnimationUsingKeyFrames()
 {
-       this->SetValue (PointAnimationUsingKeyFrames::KeyFramesProperty, Value 
(new PointKeyFrameCollection ()));
+       this->SetValue (PointAnimationUsingKeyFrames::KeyFramesProperty, 
Value::CreateUnref (new PointKeyFrameCollection ()));
 }
 
 PointAnimationUsingKeyFrames::~PointAnimationUsingKeyFrames ()

Modified: trunk/moon/src/geometry.cpp
===================================================================
--- trunk/moon/src/geometry.cpp 2007-12-07 09:16:14 UTC (rev 90897)
+++ trunk/moon/src/geometry.cpp 2007-12-07 09:31:53 UTC (rev 90898)
@@ -256,7 +256,7 @@
 
 GeometryGroup::GeometryGroup ()
 {
-       this->SetValue (GeometryGroup::ChildrenProperty, Value (new 
GeometryCollection ()));
+       this->SetValue (GeometryGroup::ChildrenProperty, Value::CreateUnref 
(new GeometryCollection ()));
 }
 
 void

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

Reply via email to