S60: Deleting allocated TrkLauncher in dtor of S60DeviceRunControlBase.

This commit is contained in:
Robert Loehning
2009-10-23 18:40:46 +02:00
parent 1c528c48cc
commit 05f29012d9
2 changed files with 9 additions and 1 deletions

View File

@@ -435,6 +435,14 @@ S60DeviceRunControlBase::S60DeviceRunControlBase(const QSharedPointer<RunConfigu
m_packageFile = QFileInfo(m_packageFilePath).fileName();
}
S60DeviceRunControlBase::~S60DeviceRunControlBase()
{
if (m_launcher) {
m_launcher->deleteLater();
m_launcher = 0;
}
}
void S60DeviceRunControlBase::start()
{
emit started();

View File

@@ -129,7 +129,7 @@ class S60DeviceRunControlBase : public ProjectExplorer::RunControl
Q_OBJECT
public:
explicit S60DeviceRunControlBase(const QSharedPointer<ProjectExplorer::RunConfiguration> &runConfiguration);
~S60DeviceRunControlBase() {}
~S60DeviceRunControlBase();
virtual void start();
virtual void stop();
virtual bool isRunning() const;