From 4b8bc84e4a5236ce2acaf6fc245c9c213a1c4969 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Apr 2016 19:45:06 +0200 Subject: [PATCH] let GMainContext clean up after us. this fixes a potential crash in AsyncMIDIPort::~AsyncMIDIPort() -> CrossThreadChannel::~CrossThreadChannel() --- libs/pbd/crossthread.posix.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/pbd/crossthread.posix.cc b/libs/pbd/crossthread.posix.cc index 72a4fad810..5035bc49da 100644 --- a/libs/pbd/crossthread.posix.cc +++ b/libs/pbd/crossthread.posix.cc @@ -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;