summaryrefslogtreecommitdiff
path: root/sim/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/debug.cc')
-rw-r--r--sim/debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/debug.cc b/sim/debug.cc
index 95187baff..6f3789c96 100644
--- a/sim/debug.cc
+++ b/sim/debug.cc
@@ -66,6 +66,7 @@ class DebugBreakEvent : public Event
DebugBreakEvent::DebugBreakEvent(EventQueue *q, Tick _when)
: Event(q)
{
+ setFlags(AutoDelete);
schedule(_when, -20000);
}
@@ -76,7 +77,6 @@ void
DebugBreakEvent::process()
{
debug_break();
- delete this;
}