Fix a crash on shutdown in ~SocketApi #3057
authorJocelyn Turcotte <jturcotte@woboq.com>
Wed, 1 Apr 2015 12:40:34 +0000 (14:40 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 1 Apr 2015 13:03:42 +0000 (15:03 +0200)
commit4a893c5267ce625a44ed02b724832e6fa67dd899
treed7ed9df265399585ce9dd7a06643f47c391c5648
parent2473183f193af07d46451206b0f2f12a266a90db
Fix a crash on shutdown in ~SocketApi #3057

Deleting the QLocalSocket while iterating the QList with qDeleteAll
would trigger onLostConnection, which would modify the list mid-air
and leave dangling pointers in it.
src/gui/socketapi.cpp