D17373: Fix heap-use-after-free

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag created this revision.
zzag added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
zzag requested review of this revision.

REVISION SUMMARY
  After Scene::Window::updateShadow is called, `this` is a dangling
  pointer. So, we have to capture m_topLevel instead.

TEST PLAN
  It should make CI a little bit happier.

REPOSITORY
  R108 KWin

BRANCH
  fix-heap-use-after-free

REVISION DETAIL
  https://phabricator.kde.org/D17373

AFFECTED FILES
  shadow.cpp

To: zzag, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.