This commit is contained in:
Marco Martin 2013-02-14 14:39:20 +01:00
parent 50d2347d2f
commit b2d1493e74

View File

@ -33,7 +33,8 @@
#include "declarative/qmlobject.h" #include "declarative/qmlobject.h"
ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent) ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent)
: AppletInterface(parent) : AppletInterface(parent),
m_wallpaperQmlObject(0)
{ {
qmlRegisterType<ContainmentInterface>(); qmlRegisterType<ContainmentInterface>();
@ -184,10 +185,12 @@ void ContainmentInterface::loadWallpaper()
} }
} else { } else {
if (m_wallpaperQmlObject) {
m_wallpaperQmlObject->deleteLater(); m_wallpaperQmlObject->deleteLater();
m_wallpaperQmlObject = 0; m_wallpaperQmlObject = 0;
} }
} }
}
QString ContainmentInterface::activityId() const QString ContainmentInterface::activityId() const
{ {