summaryrefslogtreecommitdiff
path: root/src/drumkit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumkit.cc')
-rw-r--r--src/drumkit.cc9
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;