summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dev/mc146818.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dev/mc146818.cc b/src/dev/mc146818.cc
index 0bb6558c8..2e6ed2a4b 100644
--- a/src/dev/mc146818.cc
+++ b/src/dev/mc146818.cc
@@ -105,6 +105,8 @@ MC146818::MC146818(EventManager *em, const string &n, const struct tm time,
MC146818::~MC146818()
{
+ deschedule(tickEvent);
+ deschedule(event);
}
void