<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: kde-frameworks-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14291">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The destructor or Resource::~Resource will delete the d-pointer used by<br />
Resource before we reach QObject::~QObject() of the resource which emits<br />
the destroyed signal. This means this lamba is accessing deleted<br />
contents.</p>

<p>Based on<br />
<a href="https://build.kde.org/view/Frameworks/job/Frameworks%20kwayland%20kf5-qt5%20SUSEQt5.10/71/testReport/" class="remarkup-link" target="_blank" rel="noreferrer">https://build.kde.org/view/Frameworks/job/Frameworks%20kwayland%20kf5-qt5%20SUSEQt5.10/71/testReport/</a></p>

<p>aboutToBeUnbound is emitted before object destruction.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Relevant unit test still passes and this lambda is still invoked.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>dave</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14291">https://phabricator.kde.org/D14291</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/server/remote_access_interface.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>