mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
AppItem: fix memory leak
Change-Id: I1581a8c0739ee530751253339f3f15122177ac87
This commit is contained in:
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
@ -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;
|
||||
|
@ -12,6 +12,7 @@ class AppItem : public DockItem
|
||||
|
||||
public:
|
||||
explicit AppItem(const QDBusObjectPath &entry, QWidget *parent = nullptr);
|
||||
~AppItem();
|
||||
|
||||
const QString appId() const;
|
||||
void updateWindowIconGeometries();
|
||||
|
Loading…
x
Reference in New Issue
Block a user