move location where port handling stops during Mackie::Surface destructor
This commit is contained in:
@@ -149,18 +149,6 @@ Surface::~Surface ()
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface init\n");
|
||||
|
||||
// zero_all ();
|
||||
|
||||
// delete groups
|
||||
for (Groups::iterator it = groups.begin(); it != groups.end(); ++it) {
|
||||
delete it->second;
|
||||
}
|
||||
|
||||
// delete controls
|
||||
for (Controls::iterator it = controls.begin(); it != controls.end(); ++it) {
|
||||
delete *it;
|
||||
}
|
||||
|
||||
port_connection.disconnect ();
|
||||
|
||||
if (input_source) {
|
||||
@@ -168,6 +156,16 @@ Surface::~Surface ()
|
||||
input_source = 0;
|
||||
}
|
||||
|
||||
// delete groups (strips)
|
||||
for (Groups::iterator it = groups.begin(); it != groups.end(); ++it) {
|
||||
delete it->second;
|
||||
}
|
||||
|
||||
// delete controls (global buttons, master fader etc)
|
||||
for (Controls::iterator it = controls.begin(); it != controls.end(); ++it) {
|
||||
delete *it;
|
||||
}
|
||||
|
||||
delete _jog_wheel;
|
||||
delete _port;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user