not necessary to test it before delete it
svn path=/trunk/KDE/kdelibs/; revision=1183974
This commit is contained in:
parent
dc6633a0d5
commit
dd256bfe92
@ -86,13 +86,8 @@ void DeclarativeWidgetPrivate::execute(const QString &fileName)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine) {
|
delete engine;
|
||||||
delete engine;
|
delete component;
|
||||||
}
|
|
||||||
|
|
||||||
if (component) {
|
|
||||||
delete component;
|
|
||||||
}
|
|
||||||
|
|
||||||
engine = new QDeclarativeEngine(q);
|
engine = new QDeclarativeEngine(q);
|
||||||
component = new QDeclarativeComponent(engine, fileName, q);
|
component = new QDeclarativeComponent(engine, fileName, q);
|
||||||
|
Loading…
Reference in New Issue
Block a user