D22986: RFC: fix: Prevent heap-use-after-free when tearing down

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag added a comment.


  In D22986#508353 <https://phabricator.kde.org/D22986#508353>, @romangg wrote:
  
  > Wouldn't it make more sense then to tackle this issue directly instead of putting another small patch on it?
  
  
  I'm open for suggestions how to fix this problem.
  
  ShellClient's are created only when Workspace is created. This patch draws a line between what entity is responsible for destroying them - lifetime of each ShellClient is bounded to Workspace while lifetime of wayland resources is bounded to WaylandServer.

REPOSITORY
  R108 KWin

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

To: zzag, #kwin
Cc: romangg, kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, 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.