diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-12 16:29:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-12 16:29:31 +0100 |
commit | d63ef52cfd1ca1867542471c3fce4ff5e47b1916 (patch) | |
tree | 65238594e054114d25d5d82ae1e32d208abaa4d6 /src/drumkit.cc | |
parent | 62bd868f56a00c0340a0d1e35626ffbef10f5db0 (diff) |
Changed instrument list to containing pointers.
Diffstat (limited to 'src/drumkit.cc')
-rw-r--r-- | src/drumkit.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drumkit.cc b/src/drumkit.cc index d5a066f..00ab2e2 100644 --- a/src/drumkit.cc +++ b/src/drumkit.cc @@ -26,6 +26,15 @@ */ #include "drumkit.h" +DrumKit::~DrumKit() +{ + Instruments::iterator i = instruments.begin(); + while(i != instruments.end()) { + delete *i; + i++; + } +} + std::string DrumKit::name() { return _name; |