Ensure declarative view gets deleted when script is unloaded
Using a scoped pointer to ensure that the view is deleted in the DeclarativeScript's dtor. REVIEW: 104846
This commit is contained in:
parent
e274c297b9
commit
54ecbc6b6a
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ public Q_SLOTS:
|
|||
Q_SCRIPTABLE void run();
|
||||
|
||||
private:
|
||||
QDeclarativeView *m_view;
|
||||
QScopedPointer<QDeclarativeView> m_view;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue