KUiServerV2JobTracker: prevent potenial use-after-free
Replaces !42 (closed)
I suspect KUiServerV2JobTracker::finished
can get called as KSharedUiServerV2Proxy::serverRegistered
is running. KUiServerV2JobTracker
is very asynchronous and any event can happen at anytime.
This trick is also used in QDBusPendingCallWatcher::finished
. Not sure if that makes sense here though since we don't have an asynchronous treatment.
d->jobViews
may need instead to be guarded with a QMutex
. ( !47 (closed))
Edited by Méven Car