let GMainContext clean up after us.
authorRobin Gareus <robin@gareus.org>
Tue, 26 Apr 2016 17:45:06 +0000 (19:45 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 26 Apr 2016 17:45:06 +0000 (19:45 +0200)
this fixes a potential crash in
AsyncMIDIPort::~AsyncMIDIPort() -> CrossThreadChannel::~CrossThreadChannel()

libs/pbd/crossthread.posix.cc

index 72a4fad810dcf221548f00526a6502f96e43513a..5035bc49da9d60ba6da8860a234650a4d1ea9bb6 100644 (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;