plug some leaks
This commit is contained in:
parent
51cbf674d3
commit
36be1a3a9b
@ -390,6 +390,8 @@ ARDOUR::cleanup ()
|
||||
#ifdef LXVST_SUPPORT
|
||||
vstfx_exit();
|
||||
#endif
|
||||
delete &PluginManager::instance();
|
||||
delete Config;
|
||||
PBD::cleanup ();
|
||||
|
||||
return;
|
||||
|
@ -138,6 +138,8 @@ MidiDiskstream::init ()
|
||||
MidiDiskstream::~MidiDiskstream ()
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (state_lock);
|
||||
delete _playback_buf;
|
||||
delete _capture_buf;
|
||||
}
|
||||
|
||||
|
||||
|
@ -124,6 +124,8 @@ PannerManager::panner_discover (string path)
|
||||
if (i == panner_info.end()) {
|
||||
panner_info.push_back (pinfo);
|
||||
DEBUG_TRACE (DEBUG::Panning, string_compose(_("Panner discovered: \"%1\" in %2\n"), pinfo->descriptor.name, path));
|
||||
} else {
|
||||
delete pinfo;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,6 +70,7 @@ template class AbstractUI<Gtkmm2ext::UIRequest>;
|
||||
UI::UI (string namestr, int *argc, char ***argv)
|
||||
: AbstractUI<UIRequest> (namestr)
|
||||
, _receiver (*this)
|
||||
, errors (0)
|
||||
|
||||
{
|
||||
theMain = new Main (argc, argv);
|
||||
@ -124,6 +125,7 @@ UI::UI (string namestr, int *argc, char ***argv)
|
||||
UI::~UI ()
|
||||
{
|
||||
_receiver.hangup ();
|
||||
delete (errors);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -211,6 +211,7 @@ AbstractUI<RequestObject>::handle_ui_requests ()
|
||||
if (vec.buf[0]->invalidation) {
|
||||
vec.buf[0]->invalidation->requests.remove (vec.buf[0]);
|
||||
}
|
||||
delete vec.buf[0];
|
||||
i->second->increment_read_ptr (1);
|
||||
}
|
||||
}
|
||||
@ -326,6 +327,7 @@ AbstractUI<RequestObject>::send_request (RequestObject *req)
|
||||
*/
|
||||
DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("%1/%2 direct dispatch of request type %3\n", name(), pthread_name(), req->type));
|
||||
do_request (req);
|
||||
delete req;
|
||||
} else {
|
||||
|
||||
/* If called from a different thread, we first check to see if
|
||||
|
Loading…
Reference in New Issue
Block a user