From 7afee6563e1b620f06b567ff19e428c6dd203835 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sun, 17 Apr 2011 01:57:25 +0000 Subject: Added destructors to sigmap and tempomap. --- muse2/al/sig.cpp | 6 ++++++ muse2/al/sig.h | 1 + 2 files changed, 7 insertions(+) (limited to 'muse2/al') diff --git a/muse2/al/sig.cpp b/muse2/al/sig.cpp index 7eeae6be..293a5b3e 100644 --- a/muse2/al/sig.cpp +++ b/muse2/al/sig.cpp @@ -64,6 +64,12 @@ SigList::SigList() insert(std::pair (MAX_TICK, new SigEvent(TimeSignature(4, 4), 0))); } +SigList::~SigList() + { + for (iSigEvent i = begin(); i != end(); ++i) + delete i->second; + } + //--------------------------------------------------------- // add // signatures are only allowed at the beginning of diff --git a/muse2/al/sig.h b/muse2/al/sig.h index ed18981f..618cd53c 100644 --- a/muse2/al/sig.h +++ b/muse2/al/sig.h @@ -85,6 +85,7 @@ class SigList : public SIGLIST { public: SigList(); + ~SigList(); void clear(); void add(unsigned tick, const TimeSignature& s); //void add(unsigned tick, int z, int n); -- cgit v1.2.3