diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-09 11:12:28 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-09 11:12:28 -0400 |
commit | 7e771c9fdc025791e8b1e23520532566eed19cd8 (patch) | |
tree | 2691b95ac948f433bdbebe260af2a048c693a272 | |
parent | 6acd51d48e6f91cfd582016141ea170d1538447d (diff) |
move location where port handling stops during Mackie::Surface destructor
-rw-r--r-- | libs/surfaces/mackie/surface.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libs/surfaces/mackie/surface.cc b/libs/surfaces/mackie/surface.cc index 020b389ad4..7beaef59fa 100644 --- a/libs/surfaces/mackie/surface.cc +++ b/libs/surfaces/mackie/surface.cc @@ -149,25 +149,23 @@ Surface::~Surface () { DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface init\n"); - // zero_all (); + port_connection.disconnect (); - // delete groups + if (input_source) { + g_source_destroy (input_source); + input_source = 0; + } + + // delete groups (strips) for (Groups::iterator it = groups.begin(); it != groups.end(); ++it) { delete it->second; } - // delete controls + // delete controls (global buttons, master fader etc) for (Controls::iterator it = controls.begin(); it != controls.end(); ++it) { delete *it; } - port_connection.disconnect (); - - if (input_source) { - g_source_destroy (input_source); - input_source = 0; - } - delete _jog_wheel; delete _port; |