diff options
author | Eetu Lehmusvuo <eetu.lehmusvuo@ixonos.com> | 2010-12-13 09:34:40 +0200 |
---|---|---|
committer | Stanislav Ionascu <stanislav.ionascu@nokia.com> | 2010-12-16 08:57:59 +0200 |
commit | 726b01bcbf621610fafe9f42d2b86e11e1efc2c9 (patch) | |
tree | 271a5f558d5295ee8c01b102999522fc11a8d473 /mapplicationextensionrunner | |
parent | f2c3da5d11cb9c99bfee4c4aa4b2d7668519090f (diff) |
Fixes: NB#210573 - COREWEB: /usr/lib/meegotouch/applicationextensions/mapplicationextensionrunner '__poll g_main_context_poll g_main_context_iterate g_main_context_iteration QEventDispatcherGlib::processEvents'
RevBy: Stanislav Ionascu
Diffstat (limited to 'mapplicationextensionrunner')
-rw-r--r-- | mapplicationextensionrunner/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mapplicationextensionrunner/main.cpp b/mapplicationextensionrunner/main.cpp index c6eba11b..1107c078 100644 --- a/mapplicationextensionrunner/main.cpp +++ b/mapplicationextensionrunner/main.cpp @@ -93,12 +93,15 @@ int main(int argc, char **argv) return ERROR_APPLICATION_EXTENSION_INIT_FAILED; } - MApplication app(argc, argv, metadata.resourceIdentifier(), new MyApplicationService()); + MApplication *app = new MApplication(argc, argv, metadata.resourceIdentifier(), new MyApplicationService()); MApplicationExtensionRunner runner; if (!runner.init(argv[1], metadata)) { qWarning() << "Application extension initialization failed"; return ERROR_APPLICATION_EXTENSION_INIT_FAILED; } - return app.exec(); + int returnValue = app->exec(); + + delete app; + return returnValue; } |