diff options
Diffstat (limited to 'src/server/JackDriver.cpp')
-rw-r--r-- | src/server/JackDriver.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index ac3393a2..fd6b2631 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -66,9 +66,14 @@ JackDriver::JackDriver(Engine& engine) &_forge, &engine.world()->uri_map().urid_map_feature()->urid_map); } +struct PortDisposer { + void operator()(EnginePort* port) { delete port; } +}; + JackDriver::~JackDriver() { deactivate(); + _ports.clear_and_dispose(PortDisposer()); if (_client) jack_client_close(_client); |