diff options
author | Tim E. Real <termtech@rogers.com> | 2011-04-17 01:57:25 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-04-17 01:57:25 +0000 |
commit | 7afee6563e1b620f06b567ff19e428c6dd203835 (patch) | |
tree | 49022fdb7386d5263aa9b743fba29b659b2d7e86 /muse2/muse | |
parent | 42be6376637248e01ea2ab0a41a6653b53d71800 (diff) |
Added destructors to sigmap and tempomap.
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/tempo.cpp | 6 | ||||
-rw-r--r-- | muse2/muse/tempo.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/muse2/muse/tempo.cpp b/muse2/muse/tempo.cpp index 418ec031..1e476e45 100644 --- a/muse2/muse/tempo.cpp +++ b/muse2/muse/tempo.cpp @@ -30,6 +30,12 @@ TempoList::TempoList() useList = true; } +TempoList::~TempoList() + { + for (iTEvent i = begin(); i != end(); ++i) + delete i->second; + } + //--------------------------------------------------------- // add //--------------------------------------------------------- diff --git a/muse2/muse/tempo.h b/muse2/muse/tempo.h index 61ec50f5..632d60bb 100644 --- a/muse2/muse/tempo.h +++ b/muse2/muse/tempo.h @@ -61,6 +61,7 @@ class TempoList : public TEMPOLIST { public: TempoList(); + ~TempoList(); void clear(); void read(Xml&); |