for an ipMIDI surface, make the GSource used for input hold the only reference on the GUIChannel.

This commit is contained in:
Paul Davis 2015-10-08 21:53:05 -04:00
parent 7e10c21468
commit bda0ba173c
3 changed files with 9 additions and 12 deletions

View file

@ -92,7 +92,6 @@ Surface::Surface (MackieControlProtocol& mcp, const std::string& device_name, ui
, _master_fader (0)
, _last_master_gain_written (-0.0f)
, connection_state (0)
, input_channel (0)
, input_source (0)
{
DEBUG_TRACE (DEBUG::MackieControl, "Surface::Surface init\n");
@ -169,11 +168,6 @@ Surface::~Surface ()
input_source = 0;
}
if (input_channel) {
g_io_channel_unref (input_channel);
input_channel = 0;
}
delete _jog_wheel;
delete _port;