guard the pointer

This commit is contained in:
Marco Martin 2014-04-22 15:15:40 +02:00
parent 47dfda75c0
commit 0b4272fa56

View File

@ -541,7 +541,9 @@ void ContainmentInterface::loadWallpaper()
} }
if (!containment()->wallpaper().isEmpty()) { if (!containment()->wallpaper().isEmpty()) {
delete m_wallpaperInterface; if (m_wallpaperInterface) {
delete m_wallpaperInterface;
}
m_wallpaperInterface = new WallpaperInterface(this); m_wallpaperInterface = new WallpaperInterface(this);
m_wallpaperInterface->setZ(-1000); m_wallpaperInterface->setZ(-1000);