From 4d731a522dba6d4c8146bfce3633142b48ec50b6 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Wed, 18 Nov 2009 13:55:58 -0800 Subject: [PATCH] m5: fixed destructor to deschedule the tickEvent and event --- src/dev/mc146818.cc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2