Browse Source

leak cleanup

Joe Shochet 19 years ago
parent
commit
25da5bd135
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/motiontrail/MotionTrail.py

+ 5 - 0
direct/src/motiontrail/MotionTrail.py

@@ -123,6 +123,11 @@ class MotionTrail(NodePath, DirectObject):
             
             
             MotionTrail.task_added = True
             MotionTrail.task_added = True
         return
         return
+
+    def delete(self):
+        del self.root_node_path
+        del self.parent_node_path
+        self.removeNode()
         
         
     def print_matrix (self, matrix):
     def print_matrix (self, matrix):
         separator = ' '
         separator = ' '