summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
commit4d731a522dba6d4c8146bfce3633142b48ec50b6 (patch)
tree7b50f3bc74af2573f36bca5be7ed36b1f19670a8 /src/dev
parent93f0069dd5d542883f93a75ca2d98a2008190693 (diff)
downloadgem5-4d731a522dba6d4c8146bfce3633142b48ec50b6.tar.xz
m5: fixed destructor to deschedule the tickEvent and event
Diffstat (limited to 'src/dev')
-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