From 5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 12 Jan 2012 16:31:36 +0100 Subject: Fix memory leak when unloading a drumkit. --- src/instrument.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/instrument.h') diff --git a/src/instrument.h b/src/instrument.h index e61d2b8..9b110be 100644 --- a/src/instrument.h +++ b/src/instrument.h @@ -39,6 +39,7 @@ class Instrument { friend class InstrumentParser; public: Instrument(); + ~Instrument(); Sample *sample(level_t level, size_t pos); @@ -62,6 +63,6 @@ private: }; //typedef std::map< std::string, Instrument > Instruments; -typedef std::vector< Instrument > Instruments; +typedef std::vector< Instrument* > Instruments; #endif/*__DRUMGIZMO_INSTRUMENT_H__*/ -- cgit v1.2.3