mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: check the display outside the loop in Plasma::DialogShadowsPrivate::freeX11Pixmaps()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
245a161cc8
commit
c3a344c4af
1 changed files with 4 additions and 3 deletions
|
@ -297,10 +297,11 @@ void DialogShadowsPrivate::setupData(Plasma::FrameSvg::EnabledBorders enabledBor
|
||||||
void DialogShadowsPrivate::freeX11Pixmaps()
|
void DialogShadowsPrivate::freeX11Pixmaps()
|
||||||
{
|
{
|
||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
|
if (!QX11Info::display()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (KPixmap &pixmap, m_shadowPixmaps) {
|
foreach (KPixmap &pixmap, m_shadowPixmaps) {
|
||||||
if (!QX11Info::display()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!pixmap.isNull()) {
|
if (!pixmap.isNull()) {
|
||||||
pixmap.release();
|
pixmap.release();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue