summaryrefslogtreecommitdiffstats
path: root/Tools/idle
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-25 17:25:22 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-25 17:25:22 (GMT)
commitba5a59c8342e4fa4692b21dbeb04d587f518feb0 (patch)
tree32e3842bd6ace9fff03ebb2822702f8974b90f2b /Tools/idle
parent5af0df528d717ca4b60edfeab5174dece7fe22eb (diff)
downloadcpython-ba5a59c8342e4fa4692b21dbeb04d587f518feb0.zip
cpython-ba5a59c8342e4fa4692b21dbeb04d587f518feb0.tar.gz
cpython-ba5a59c8342e4fa4692b21dbeb04d587f518feb0.tar.bz2
Break cycle on close.
Diffstat (limited to 'Tools/idle')
-rw-r--r--Tools/idle/Debugger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py
index b085a1d..267d39f 100644
--- a/Tools/idle/Debugger.py
+++ b/Tools/idle/Debugger.py
@@ -26,6 +26,8 @@ class Debugger(bdb.Bdb):
if self.interacting:
self.top.bell()
return
+ if self.stackviewer:
+ self.stackviewer.close(); self.stackviewer = None
self.pyshell.close_debugger()
self.top.destroy()