13
0

Plug some libardour memory leaks

This commit is contained in:
Robin Gareus 2017-01-20 11:32:55 +01:00
parent 6b5dce2c66
commit 02d484de8a
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -50,6 +50,9 @@ Worker::~Worker()
if (_thread) {
_thread->join();
}
delete _responses;
delete _requests;
free (_response);
}
bool