HomePhorge

Fix crash when Session is destroyed while waiting for ignoreSslError()

Description

Fix crash when Session is destroyed while waiting for ignoreSslError()

ignoreSslError() is async and the whole Session including SessionThread
can be deleted in the meantime. Checking against member variable of the
potentially deleted object does not make much sense since the memory can
already be overwritten.

Instead we hold the pointer in a local QPointer variable, which will get
updated when the SessionThread is destroyed while we are waiting for
ignoreSslError() to return.

Patch by D. Vratil, backported from kimap repository.

Phabricator Ticket: git.kolab.org/T1325

Details

Provenance
Christian Mollekopf <chrigi_1@fastmail.fm>Authored on Jun 27 2016, 11:07 AM
mollekopfPushed on Jun 27 2016, 11:09 AM
Parents
rKPL5f34bf2666f1: Prepare release of kdepimlibs-4.13.0.27
Branches
Unknown
Tags
Unknown
Build Status
Buildable 4040
Build 4027: Continuous Integration for Software Development Projects