let GMainContext clean up after us.
this fixes a potential crash in AsyncMIDIPort::~AsyncMIDIPort() -> CrossThreadChannel::~CrossThreadChannel()
This commit is contained in:
parent
43e620504a
commit
4b8bc84e4a
|
@ -29,11 +29,6 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking)
|
|||
|
||||
CrossThreadChannel::~CrossThreadChannel ()
|
||||
{
|
||||
if (receive_source) {
|
||||
g_source_destroy (receive_source);
|
||||
receive_source = 0;
|
||||
}
|
||||
|
||||
if (receive_channel) {
|
||||
g_io_channel_unref (receive_channel);
|
||||
receive_channel = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user