Author: fejj
Date: 2007-06-19 11:26:54 -0400 (Tue, 19 Jun 2007)
New Revision: 80177

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/animation.cpp
Log:
2007-06-19  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * animation.cpp (Remove): Remove the KeyFrame from the sorted list
        before removing it from the collection (since it may be freed by
        Collection::Remove).



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-19 15:24:29 UTC (rev 80176)
+++ trunk/moon/src/ChangeLog    2007-06-19 15:26:54 UTC (rev 80177)
@@ -1,3 +1,9 @@
+2007-06-19  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * animation.cpp (Remove): Remove the KeyFrame from the sorted list
+       before removing it from the collection (since it may be freed by
+       Collection::Remove).
+
 2007-06-19  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * runtime.cpp: Add support for resizing objects.

Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp        2007-06-19 15:24:29 UTC (rev 80176)
+++ trunk/moon/src/animation.cpp        2007-06-19 15:26:54 UTC (rev 80177)
@@ -670,8 +670,8 @@
 KeyFrameCollection::Remove (DependencyObject *data)
 {
        KeyFrame *kf = (KeyFrame *) data;
+       sorted_list = g_slist_remove (sorted_list, kf);
        Collection::Remove (kf);
-       sorted_list = g_slist_remove (sorted_list, kf);
 }
 
 KeyFrame*

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

Reply via email to