From d63ef52cfd1ca1867542471c3fce4ff5e47b1916 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 12 Jan 2012 16:29:31 +0100 Subject: Changed instrument list to containing pointers. --- src/drumkit.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; -- cgit v1.2.3