<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-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/D14264">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Decoration is destroyed at some point before DecorationButton, as seen<br />
by the existing use of QPointer for holding the Decoration.<br />
Use of a weak pointer without guarding seems wrong.</p>

<p>Every other connect (DecorationButton::Private::init) that proxies to<br />
the decorationimplementation in kwin guards against this by setting the<br />
connect lifespan to match decoration. This one connect was out of sync.</p>

<p>BUG: 396723<br />
CCBUG: 396729</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran kwin.<br />
Checked I still had tooltips<br />
Didn't try to reproduce the original crash</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R129 Window Decoration Library</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14264">https://phabricator.kde.org/D14264</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/decorationbutton.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>