From 3b0b3e20b72b5b97c39de83e0ce98b89aaf4a1cc Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Thu, 30 Sep 2004 01:51:03 +0000 Subject: [PATCH] cleanup refs --- direct/src/controls/ControlManager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct/src/controls/ControlManager.py b/direct/src/controls/ControlManager.py index f8b39e0f56..af9acd7403 100755 --- a/direct/src/controls/ControlManager.py +++ b/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()