diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-24 14:41:07 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-24 14:43:18 +0200 |
commit | e3607a4c8bbe68714600cb3849abee0c20d0047c (patch) | |
tree | 8c93a2eb519ddd6ed33e1f6b51e42bebcab5f3cf /libs/ardour/auditioner.cc | |
parent | c4c6c38dbde32fa9478977740864f5c141dff092 (diff) |
plug some memory leaks in libardour
Diffstat (limited to 'libs/ardour/auditioner.cc')
-rw-r--r-- | libs/ardour/auditioner.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index fe84a2d717..33f74faf80 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -85,13 +85,17 @@ Auditioner::init () Auditioner::~Auditioner () { + if (asynth) { + asynth->drop_references (); + } + asynth.reset (); } void Auditioner::lookup_synth () { string plugin_id = Config->get_midi_audition_synth_uri(); - asynth = boost::shared_ptr<Processor>(); + asynth.reset (); if (!plugin_id.empty()) { boost::shared_ptr<Plugin> p; p = find_plugin (_session, plugin_id, ARDOUR::LV2); |