From d3f35fb5249713f34b079cec561dd3060ba8d22c Mon Sep 17 00:00:00 2001 From: tilsche Date: Mon, 4 Mar 2019 16:53:31 +0100 Subject: [PATCH] fix duplicate _connection->remove call on ConnectionImpl objects that were already destroyed, but didn't detach in case of errors --- src/channelimpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/channelimpl.cpp b/src/channelimpl.cpp index f3c5709..60054d0 100644 --- a/src/channelimpl.cpp +++ b/src/channelimpl.cpp @@ -846,6 +846,7 @@ void ChannelImpl::reportError(const char *message, bool notifyhandler) // the connection no longer has to know that this channel exists, // because the channel ID is no longer in use if (_connection) _connection->remove(this); + _connection = nullptr; } /**