From: Brad Beckmann Date: Wed, 18 Nov 2009 21:55:58 +0000 (-0800) Subject: m5: fixed destructor to deschedule the tickEvent and event X-Git-Tag: stable_2012_02_02~1575^2~47 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d731a522dba6d4c8146bfce3633142b48ec50b6;p=gem5.git m5: fixed destructor to deschedule the tickEvent and event --- 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