D26967: [kstyle] Use guarded pointers to store shadows
Vlad Zahorodnii
noreply at phabricator.kde.org
Tue Jan 28 15:02:24 GMT 2020
zzag created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
zzag requested review of this revision.
REVISION SUMMARY
Since a KWindowShadow is a child of QWindow, we need to use a guarded
pointer to store the shadow in order to prevent accessing or deleting
dangling pointers in ShadowHelper::_shadows. It's quite possible that
one could destroy the associated widget and with it the QWindow.
REPOSITORY
R113 Oxygen Theme
BRANCH
fix-crash
REVISION DETAIL
https://phabricator.kde.org/D26967
AFFECTED FILES
kstyle/oxygenshadowhelper.cpp
kstyle/oxygenshadowhelper.h
To: zzag
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200128/010ab3f6/attachment.html>
More information about the Plasma-devel
mailing list