Browse Source

cleanup refs

Joe Shochet 21 years ago
parent
commit
3b0b3e20b7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      direct/src/controls/ControlManager.py

+ 7 - 0
direct/src/controls/ControlManager.py

@@ -138,6 +138,13 @@ class ControlManager:
         for controls in self.controls.values():
             controls.setWalkSpeed(
                 forwardSpeed, jumpForce, reverseSpeed, rotateSpeed)
+
+    def delete(self):
+        assert self.notify.debugCall(id(self))
+        self.disable()
+        del self.controls
+        del self.currentControls
+        #self.monitorTask.remove()
     
     def getSpeeds(self):
         return self.currentControls.getSpeeds()