Skip to content

PendingCall: fixed double free

Tobias Stannowski requested to merge tst/bluez-qt:bugfix/double-free into master

For convenience a PendingCall has usually a parent. However when a PendingCall finishes it calls deleteLater() on itself.

This is problematic in scenarios where the parent disappears (e.g. if the parent is a Device). In that case a double free happens which results in a crash.

It would be best if the parent is kept alive by the library itself if it has a PendingCall in flight.

Merge request reports

Loading