AppItem: fix memory leak

Change-Id: I1581a8c0739ee530751253339f3f15122177ac87
This commit is contained in:
石博文 2017-04-12 15:31:36 +08:00 committed by Deepin Code Review
parent 3f574587d3
commit 64c06b20fa
Notes: Deepin Code Review 2017-04-12 17:10:36 +08:00
Verified+1: Anonymous Coward #1000004
Verified+1: wangyingtao <wangyingtao@deepin.com>
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Wed, 12 Apr 2017 17:10:36 +0800
Reviewed-on: https://cr.deepin.io/22234
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,12 @@ AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
refershIcon();
}
AppItem::~AppItem()
{
m_appNameTips->deleteLater();
m_appPreviewTips->deleteLater();
}
const QString AppItem::appId() const
{
return m_id;

View File

@ -12,6 +12,7 @@ class AppItem : public DockItem
public:
explicit AppItem(const QDBusObjectPath &entry, QWidget *parent = nullptr);
~AppItem();
const QString appId() const;
void updateWindowIconGeometries();