From 43f4603128429184048c400e60ce15c33bd87349 Mon Sep 17 00:00:00 2001 From: Vesa Halttunen Date: Wed, 5 Jan 2011 15:26:20 +0200 Subject: Fixes: NB#216289 - COREWEB: /usr/lib/meegotouch/applicationextensions/mapplicationextensionrunner 'QGraphicsScene::~QGraphicsScene MScene::~MScene MExtensionRunner::teardown MExtensionRunner::~MExtensionRunner MApplicationExtensionRunner::~MApplicationExtensionRunner' Bug: NB#216289 - COREWEB: /usr/lib/meegotouch/applicationextensions/mapplicationextensionrunner 'QGraphicsScene::~QGraphicsScene MScene::~MScene MExtensionRunner::teardown MExtensionRunner::~MExtensionRunner MApplicationExtensionRunner::~MApplicationExtensionRunner' RevBy: TrustMe --- debian/changelog | 1 + mapplicationextensionrunner/main.cpp | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 014ff81a..2cf325a2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ libmeegotouch (0.20.72~1) unstable; urgency=low * unreleased + * Fixes: NB#216289 - COREWEB: /usr/lib/meegotouch/applicationextensions/mapplicationextensionrunner 'QGraphicsScene::~QGraphicsScene MScene::~MScene MExtensionRunner::teardown MExtensionRunner::~MExtensionRunner MApplicationExtensionRunner::~MApplicationExtensionRunner' -- Adrian Yanes Wed, 05 Jan 2011 14:40:52 +0100 diff --git a/mapplicationextensionrunner/main.cpp b/mapplicationextensionrunner/main.cpp index a6e19b44..9b33415d 100644 --- a/mapplicationextensionrunner/main.cpp +++ b/mapplicationextensionrunner/main.cpp @@ -103,15 +103,18 @@ int main(int argc, char **argv) if (getenv("M_OUTPUT_LEVEL") == NULL) { setenv("M_OUTPUT_LEVEL", "warning", 0); } + + int returnValue = 0; MApplication *app = new MApplication(argc, argv, metadata.resourceIdentifier(), new MyApplicationService()); - MApplicationExtensionRunner runner; - if (!runner.init(argv[1], metadata)) { + MApplicationExtensionRunner *runner = new MApplicationExtensionRunner; + if (!runner->init(argv[1], metadata)) { mWarning("MApplicationExtensionRunner") << "Application extension" << argv[2] << "initialization failed."; - return ERROR_APPLICATION_EXTENSION_INIT_FAILED; + returnValue = ERROR_APPLICATION_EXTENSION_INIT_FAILED; + } else { + returnValue = app->exec(); } - - int returnValue = app->exec(); - + delete runner; delete app; + return returnValue; } -- cgit v1.2.3