Plug some libardour memory leaks
This commit is contained in:
parent
6b5dce2c66
commit
02d484de8a
@ -96,6 +96,7 @@ IO::~IO ()
|
||||
for (PortSet::iterator i = _ports.begin(); i != _ports.end(); ++i) {
|
||||
_session.engine().unregister_port (*i);
|
||||
}
|
||||
delete pending_state_node; pending_state_node = 0;
|
||||
}
|
||||
|
||||
void
|
||||
@ -662,6 +663,7 @@ IO::set_state (const XMLNode& node, int version)
|
||||
|
||||
} else {
|
||||
|
||||
delete pending_state_node;
|
||||
pending_state_node = new XMLNode (node);
|
||||
pending_state_node_version = version;
|
||||
pending_state_node_in = false;
|
||||
@ -716,6 +718,7 @@ IO::set_state_2X (const XMLNode& node, int version, bool in)
|
||||
|
||||
} else {
|
||||
|
||||
delete pending_state_node;
|
||||
pending_state_node = new XMLNode (node);
|
||||
pending_state_node_version = version;
|
||||
pending_state_node_in = in;
|
||||
|
@ -50,6 +50,9 @@ Worker::~Worker()
|
||||
if (_thread) {
|
||||
_thread->join();
|
||||
}
|
||||
delete _responses;
|
||||
delete _requests;
|
||||
free (_response);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user