diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/sim_object.cc | 5 | ||||
-rw-r--r-- | src/sim/sim_object.hh | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc index 44d498c3c..a7be4ebd2 100644 --- a/src/sim/sim_object.cc +++ b/src/sim/sim_object.cc @@ -70,6 +70,11 @@ SimObject::SimObject(const Params *p) probeManager = new ProbeManager(this); } +SimObject::~SimObject() +{ + delete probeManager; +} + void SimObject::init() { diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh index e4526e773..9bf95d07f 100644 --- a/src/sim/sim_object.hh +++ b/src/sim/sim_object.hh @@ -101,7 +101,7 @@ class SimObject : public EventManager, public Serializable, public Drainable typedef SimObjectParams Params; const Params *params() const { return _params; } SimObject(const Params *_params); - virtual ~SimObject() {} + virtual ~SimObject(); public: |