diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-11-29 12:36:48 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2016-11-29 15:08:06 +0000 |
commit | b293f81b41750401c5ebaf919385a86078150192 (patch) | |
tree | f7d95d11b07cd3d758c9396941ba607e586f443e | |
parent | c0fdb14a9408843bd76e26bb7e093b5769f9cd83 (diff) |
RemoteLinux: Do not leak memory
Change-Id: Iea89c88e7c447288e7871e3c82db8295b3af2498
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/plugins/remotelinux/deploymenttimeinfo.cpp | 5 | ||||
-rw-r--r-- | src/plugins/remotelinux/deploymenttimeinfo.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/deploymenttimeinfo.cpp b/src/plugins/remotelinux/deploymenttimeinfo.cpp index 52ed43b913..18b3d3cbab 100644 --- a/src/plugins/remotelinux/deploymenttimeinfo.cpp +++ b/src/plugins/remotelinux/deploymenttimeinfo.cpp @@ -81,6 +81,11 @@ DeploymentTimeInfo::DeploymentTimeInfo() : d(new DeploymentTimeInfoPrivate()) } +DeploymentTimeInfo::~DeploymentTimeInfo() +{ + delete d; +} + void DeploymentTimeInfo::saveDeploymentTimeStamp(const DeployableFile &deployableFile, const Kit *kit) { diff --git a/src/plugins/remotelinux/deploymenttimeinfo.h b/src/plugins/remotelinux/deploymenttimeinfo.h index 942bc9c4ab..b0d14f829d 100644 --- a/src/plugins/remotelinux/deploymenttimeinfo.h +++ b/src/plugins/remotelinux/deploymenttimeinfo.h @@ -41,6 +41,7 @@ class DeploymentTimeInfo { public: DeploymentTimeInfo(); + ~DeploymentTimeInfo(); void importDeployTimes(const QVariantMap &map); QVariantMap exportDeployTimes() const; |