let GMainContext clean up after us.

this fixes a potential crash in
AsyncMIDIPort::~AsyncMIDIPort() -> CrossThreadChannel::~CrossThreadChannel()
This commit is contained in:
Robin Gareus 2016-04-26 19:45:06 +02:00
parent 43e620504a
commit 4b8bc84e4a

View File

@ -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;