Browse Source

cleanup garbage cycle at donald's dock

Redmond Urbino 18 years ago
parent
commit
7368702ed1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/interval/MopathInterval.py

+ 4 - 0
direct/src/interval/MopathInterval.py

@@ -35,6 +35,10 @@ class MopathInterval(LerpInterval.LerpFunctionInterval):
         self.mopath = mopath 
         self.mopath = mopath 
         self.node = node
         self.node = node
 
 
+    def destroy(self):
+        """Cleanup to avoid a garbage cycle."""
+        self.function = None
+
     def __doMopath(self, t):
     def __doMopath(self, t):
         """
         """
         Go to time t
         Go to time t