summaryrefslogtreecommitdiff
path: root/src/client/qwaylandclipboard_p.h
diff options
context:
space:
mode:
authorTang Haixiang <tanghaixiang@uniontech.com>2022-12-22 15:19:53 +0800
committerTang Haixiang <tanghaixiang@uniontech.com>2023-01-09 21:13:02 +0000
commit3af40c6c42703a65656fdd3322183abb2905e44d (patch)
tree9eafa41f4fd6fb65b9dcca5344603550b863e933 /src/client/qwaylandclipboard_p.h
parent6a8304af86c6cd5891a1d0c11624418d5b91f351 (diff)
downloadqtwayland-3af40c6c42703a65656fdd3322183abb2905e44d.tar.gz
Client: Manage QMimeData lifecycle
QMimeData is created by user, it is not taken care of in qtwayland, which will cause memory leak. It is now handled in qtwayland that when a new QMimeData is set, the previous QMimeData is freed. Change-Id: Ic502021fe700c7ee10454d94f0d1868901809af7 Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/client/qwaylandclipboard_p.h')
-rw-r--r--src/client/qwaylandclipboard_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandclipboard_p.h b/src/client/qwaylandclipboard_p.h
index 655620bd..414e3dc7 100644
--- a/src/client/qwaylandclipboard_p.h
+++ b/src/client/qwaylandclipboard_p.h
@@ -45,6 +45,7 @@ public:
private:
QWaylandDisplay *mDisplay = nullptr;
QMimeData m_emptyData;
+ QMimeData *m_clientClipboard[2];
};
}