nextcloud-desktop/src
Olivier Goffart f4495c5c80 ActivityListModel: fix possible crash in slotActivitiesReceived
Backtrace from the crash reporter:

Crash: EXCEPTION_ACCESS_VIOLATION_READ at 0x401
  File "moc_activitylistmo_M5OEXJ7XGJYTWT.cpp", line 92, in OCC::ActivityListModel::qt_static_metacall
  File "qobject.cpp", line 3730, in QMetaObject::activate
  File "moc_networkjobs_7AMNCW4BBANVRK.cpp", line 1342, in OCC::JsonApiJob::jsonReceived
  File "networkjobs.cpp", line 714, in OCC::JsonApiJob::finished
  File "abstractnetworkjob.cpp", line 207, in OCC::AbstractNetworkJob::slotFinished
  File "moc_abstractnetwor_PFI2TXGQHRE33H.cpp", line 98, in OCC::AbstractNetworkJob::qt_static_metacall
  File "qobject.cpp", line 3730, in QMetaObject::activate
  File "moc_qnetworkreply.cpp", line 367, in QNetworkReply::finished
  File "qnetworkreplyhttpimpl.cpp", line 2100, in QNetworkReplyHttpImplPrivate::finished
  File "qnetworkreplyhttpimpl.cpp", line 279, in QNetworkReplyHttpImpl::abort

My theory is that the AccountState stored in a property of the job was destroyed.
before the job timed out.
Therefore, the qobject_cast within the qvariant_cast would call the metaObject()
virtual function on a dangling pointer.

Fix it by storing a QPointer instead which will track the deletion.
2017-03-06 17:25:22 +01:00
..
3rdparty sqlite: Update bundled version to 3.16.1 2017-01-05 17:27:46 +01:00
cmd Revert "Disable RTTI" 2017-02-07 17:35:04 +01:00
crashreporter cmd and crashreporter minor typos 2015-09-10 17:34:26 +05:45
gui ActivityListModel: fix possible crash in slotActivitiesReceived 2017-03-06 17:25:22 +01:00
libsync Propagator: Fix finished signal of directory being emited twice and causing crash 2017-03-06 16:14:04 +01:00
CMakeLists.txt Fix the UNIT_TESTING build on Windows 2017-02-14 14:32:41 +01:00