diff options
author | Tang Haixiang <tanghaixiang@uniontech.com> | 2022-12-22 15:19:53 +0800 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2023-06-08 07:22:08 +0000 |
commit | d8125d85f3122ae205ef36dd2039c800ea67bff5 (patch) | |
tree | c9b7685382bf42ef5996e8371ba4b5028a868ba3 /src/compositor/compositor_api/qwaylandclient.cpp | |
parent | d3f4b3be5157f7a095b6176c98787065ae4ed4ec (diff) |
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.
This is a backport of commit 3af40c6c42703a65656fdd3322183abb2905e44d
which was submitted to dev / 6.6. In hindsight, it was decided it
should have also gone to patch releases, hence this backport.
Pick-to: 5.15 6.2
Change-Id: Ic502021fe700c7ee10454d94f0d1868901809af7
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandclient.cpp')
0 files changed, 0 insertions, 0 deletions