diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2016-11-28 16:02:26 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-12-06 05:54:32 +0000 |
commit | 4f959b6b3004ecbd0d34b34f613ce9980ba42b55 (patch) | |
tree | e308227ff809b7870aa09e05afd18c8cd0fdc155 /qmake/generators/win32/winmakefile.cpp | |
parent | 534c1ce76d499c680b1b5163346064e8b2bc4617 (diff) |
~QHttpNetworkConnectionPrivate - disconnect from socket's signals
We have a 'channel' object connected to a socket with Qt::DirectConnection.
QHttpNetworkConnectionPrivate in its dtor (note, it's a private object destroyed
after its 'q' - QHttpNetworkConnection - was destroyed) calls socket->close()
and this can end up in socket setting an error and emitting (for example, in
QSslSocket::transmit). The slot (QHttpNetworkConnectionChannel::_q_error) will
access the now-dead/non-existing connection then. So disconnect the channel
from the socket early, before closing the socket.
Task-number: QTBUG-54167
Change-Id: I3ed4ba4b00650c3a39e5c1f33aa786e47bfbbc57
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'qmake/generators/win32/winmakefile.cpp')
0 files changed, 0 insertions, 0 deletions