diff options
author | David Redondo <qt@david-redondo.de> | 2023-06-13 14:02:59 +0200 |
---|---|---|
committer | David Redondo <qt@david-redondo.de> | 2024-01-17 09:06:19 +0100 |
commit | 5085fa08226ff58543359ccf4e6cc34176d7d252 (patch) | |
tree | 6f68de080e49d5fb573e9912ac71779bf658552e /src/client/qwaylandqtkey.cpp | |
parent | f803f80c3e18d14946d8c46137211c3a710c3036 (diff) |
Make sure wayland object destructors are called
Always at least call the generated "interface"_destroy method which does
destroy the proxy. For not already wrapped classes a small template
is introduced to pass a function that is called in the destructor.
Fixes: QTBUG-111576
Change-Id: I373463710764958ddea42ef0f7dc010c427b2ce8
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/client/qwaylandqtkey.cpp')
-rw-r--r-- | src/client/qwaylandqtkey.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylandqtkey.cpp b/src/client/qwaylandqtkey.cpp index f6bda97d8..079a03e0d 100644 --- a/src/client/qwaylandqtkey.cpp +++ b/src/client/qwaylandqtkey.cpp @@ -15,6 +15,11 @@ QWaylandQtKeyExtension::QWaylandQtKeyExtension(QWaylandDisplay *display, uint32_ { } +QWaylandQtKeyExtension::~QWaylandQtKeyExtension() +{ + zqt_key_v1_destroy(object()); +} + void QWaylandQtKeyExtension::zqt_key_v1_key(struct wl_surface *surface, uint32_t time, uint32_t type, |