Skip to content

Fix ~KTcpSocket crash with libc++ (e.g. FreeBSD)

David Faure requested to merge work/dfaure/freebsd_fix_ktcpsocket into master

This was again https://blogs.kde.org/2021/02/20/uniqueptr-difference-between-libstdc-and-libc-crashes-your-application i.e. libc++ setting d to nullptr before deleting d (when d is a unique_ptr)

QAbstractSocket::~QAbstractSocket disconnects it which emits stateChanged signals, which are connected to slots which use the 'd' pointer.

Merge request reports