guard the pointer
This commit is contained in:
parent
47dfda75c0
commit
0b4272fa56
@ -541,7 +541,9 @@ void ContainmentInterface::loadWallpaper()
|
||||
}
|
||||
|
||||
if (!containment()->wallpaper().isEmpty()) {
|
||||
delete m_wallpaperInterface;
|
||||
if (m_wallpaperInterface) {
|
||||
delete m_wallpaperInterface;
|
||||
}
|
||||
|
||||
m_wallpaperInterface = new WallpaperInterface(this);
|
||||
m_wallpaperInterface->setZ(-1000);
|
||||
|
Loading…
Reference in New Issue
Block a user