Cleanup RemoteAccess buffers on aboutToBeUnbound instead of object destruction
Summary: The destructor or Resource::~Resource will delete the d-pointer used by Resource before we reach QObject::~QObject() of the resource which emits the destroyed signal. This means this lamba is accessing deleted contents. Based on https://build.kde.org/view/Frameworks/job/Frameworks%20kwayland%20kf5-qt5%20SUSEQt5.10/71/testReport/ aboutToBeUnbound is emitted before object destruction. Test Plan: Relevant unit test still passes and this lambda is still invoked. Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: romangg, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D14291
parent
a2489a41
Please register or sign in to comment