diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-12 20:05:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-12 20:05:25 +0200 |
commit | eb998b32640e83828ff3c81eabf86fe0f319bbcd (patch) | |
tree | bd3244434808481fdeaa793fc0ed9e2cac07f74e /libs/ardour/buffer_set.cc | |
parent | cb6c975417bcc13a664163610fb62cfb3a0b9041 (diff) |
plug some memory leaks in libs
Diffstat (limited to 'libs/ardour/buffer_set.cc')
-rw-r--r-- | libs/ardour/buffer_set.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/buffer_set.cc b/libs/ardour/buffer_set.cc index f64eec3191..cd0a9c5058 100644 --- a/libs/ardour/buffer_set.cc +++ b/libs/ardour/buffer_set.cc @@ -87,6 +87,13 @@ BufferSet::clear() _vst_buffers.clear (); #endif +#ifdef LV2_SUPPORT + for (LV2Buffers::iterator i = _lv2_buffers.begin(); i != _lv2_buffers.end(); ++i) { + delete (*i).second; + } + _lv2_buffers.clear (); +#endif + } /** Set up this BufferSet so that its data structures mirror a PortSet's buffers. |