diff options
author | David Schulz <david.schulz@theqtcompany.com> | 2015-01-19 13:47:51 +0100 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2015-01-20 09:21:56 +0100 |
commit | 3cf2a633e93855fa1af3d63439c672ff08b3ca64 (patch) | |
tree | f2f4f88f43147dfd7d4f6dabe592fa024701dfdb | |
parent | bd91f82a73d452a10d606d29799f6978325a3096 (diff) | |
download | qt-creator-3cf2a633e93855fa1af3d63439c672ff08b3ca64.tar.gz |
WinRT: Fix occasional crash when debugging WinRT application.
Change-Id: Ie7d54e49d67450395bf6161e9b71d00a9bf52e23
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
-rw-r--r-- | src/plugins/winrt/winrtdebugsupport.cpp | 5 | ||||
-rw-r--r-- | src/plugins/winrt/winrtdebugsupport.h | 1 | ||||
-rw-r--r-- | src/plugins/winrt/winrtrunnerhelper.cpp | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/winrt/winrtdebugsupport.cpp b/src/plugins/winrt/winrtdebugsupport.cpp index eb401b9849..655e11312b 100644 --- a/src/plugins/winrt/winrtdebugsupport.cpp +++ b/src/plugins/winrt/winrtdebugsupport.cpp @@ -58,6 +58,11 @@ WinRtDebugSupport::WinRtDebugSupport(RunControl *runControl, WinRtRunnerHelper * connect(m_debugRunControl, SIGNAL(finished()), this, SLOT(finish())); } +WinRtDebugSupport::~WinRtDebugSupport() +{ + delete m_runner; +} + void WinRtDebugSupport::finish() { m_runner->stop(); diff --git a/src/plugins/winrt/winrtdebugsupport.h b/src/plugins/winrt/winrtdebugsupport.h index 04475eb1f0..4b5d8d5cf3 100644 --- a/src/plugins/winrt/winrtdebugsupport.h +++ b/src/plugins/winrt/winrtdebugsupport.h @@ -49,6 +49,7 @@ public: static ProjectExplorer::RunControl *createDebugRunControl(WinRtRunConfiguration *runConfig, ProjectExplorer::RunMode mode, QString *errorMessage); + ~WinRtDebugSupport(); private: WinRtDebugSupport(ProjectExplorer::RunControl *runControl, WinRtRunnerHelper *runner); diff --git a/src/plugins/winrt/winrtrunnerhelper.cpp b/src/plugins/winrt/winrtrunnerhelper.cpp index eb35cdb6a7..7a0dc238e2 100644 --- a/src/plugins/winrt/winrtrunnerhelper.cpp +++ b/src/plugins/winrt/winrtrunnerhelper.cpp @@ -52,7 +52,7 @@ using namespace WinRt; using namespace WinRt::Internal; WinRtRunnerHelper::WinRtRunnerHelper(WinRtRunConfiguration *runConfiguration, QString *errormessage) - : QObject(runConfiguration) + : QObject() , m_messenger(0) , m_runConfiguration(runConfiguration) , m_process(0) |