crash--
This commit is contained in:
parent
50d2347d2f
commit
b2d1493e74
@ -33,7 +33,8 @@
|
||||
#include "declarative/qmlobject.h"
|
||||
|
||||
ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent)
|
||||
: AppletInterface(parent)
|
||||
: AppletInterface(parent),
|
||||
m_wallpaperQmlObject(0)
|
||||
{
|
||||
qmlRegisterType<ContainmentInterface>();
|
||||
|
||||
@ -184,8 +185,10 @@ void ContainmentInterface::loadWallpaper()
|
||||
}
|
||||
|
||||
} else {
|
||||
m_wallpaperQmlObject->deleteLater();
|
||||
m_wallpaperQmlObject = 0;
|
||||
if (m_wallpaperQmlObject) {
|
||||
m_wallpaperQmlObject->deleteLater();
|
||||
m_wallpaperQmlObject = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user