diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-12 16:31:36 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-12 16:31:36 +0100 |
commit | 5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 (patch) | |
tree | fc830f6272849d78cf97d7645dd6dabb483b2f23 /src/instrument.h | |
parent | ec9148f95b0c47c8eecf26f6f2f16c1db558a3b9 (diff) |
Fix memory leak when unloading a drumkit.
Diffstat (limited to 'src/instrument.h')
-rw-r--r-- | src/instrument.h | 3 |
1 files changed, 2 insertions, 1 deletions
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__*/ |