D28889: Avoid crash in KWin::DrmOutput::updateCursor

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
meven added inline comments.

INLINE COMMENTS

> drm_output.cpp:90
>  
> -    delete m_cursor[0];
> -    delete m_cursor[1];
> +    delete[] m_cursor;
>      if (!m_pageFlipPending) {

I replace those deletes, as they did not delete the m_cursor array and allowed m_cursor[i] to keep dangling pointers causing down the line crash in QImage rather than a proper segfault where m_cursor[i] was used.

REPOSITORY
  R108 KWin

BRANCH
  arcpatch-D28889

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

To: meven, #kwin, zzag, davidedmundson
Cc: ngraham, apol, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, ahiemstra, 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.