on xenial help sign in
Some more deletions
commit8d89183a8db4df1e0bde711dbe07f03845c70977 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 20 Oct 2015, 14:43 (11 years ago) parent400eb69
2 files changed+6
src/ShellApplication.cpp+4 src/main.cpp+2
src/ShellApplication.cpp+4
@@ -36,6 +36,7 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
3636 , m_shellView(nullptr)
3737 , m_secondaryWindow(nullptr)
3838 , m_mouseTouchAdaptor(nullptr)
39+ , m_qmlEngine(nullptr)
3940{
4041
4142 setApplicationName(QStringLiteral("unity8"));
@@ -135,6 +136,9 @@ void ShellApplication::destroyResources()
135136
136137 delete m_mouseTouchAdaptor;
137138 m_mouseTouchAdaptor = nullptr;
139+
140+ delete m_qmlEngine;
141+ m_qmlEngine = nullptr;
138142}
139143
140144void ShellApplication::setupQmlEngine(bool isMirServer)
src/main.cpp+2
@@ -31,5 +31,7 @@ int main(int argc, const char *argv[])
3131
3232 application->destroyResources();
3333
34+ delete application;
35+
3436 return result;
3537}