From bb8c4fe137fa5e94f6a7ff35fd7f5db5ec7d65aa Mon Sep 17 00:00:00 2001 From: Andrew Knight <andrew.knight@digia.com> Date: Tue, 24 Jun 2014 13:34:49 +0300 Subject: [PATCH] winrtrunner: Prevent crash when closing run engine Close the package factory before calling CoUnitialize(), as it may crash the application otherwise. Task-number: QTBUG-39833 Change-Id: I16108852dd259d981950dff6877ea83f8a471072 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> --- src/winrtrunner/appxengine_p.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/winrtrunner/appxengine_p.h b/src/winrtrunner/appxengine_p.h index c2e4ad524..2c344d834 100644 --- a/src/winrtrunner/appxengine_p.h +++ b/src/winrtrunner/appxengine_p.h @@ -68,6 +68,7 @@ public: virtual ~AppxEnginePrivate() { + packageFactory.Reset(); CoUninitialize(); } -- GitLab