diff options
author | David Edmundson <davidedmundson@kde.org> | 2023-12-15 08:58:15 +0000 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2023-12-21 12:17:51 +0100 |
commit | f87d0bf9ff8214222a3edd2a94efff16524b6f35 (patch) | |
tree | 65810c9b30eac5cc09145590e5bc083df7d9fad8 /src | |
parent | 18166784fda5b3afce55bf00227f77e08ff08ac2 (diff) |
client: Clean up text input proxy object in textinputv3
This not only cleans up a tiny amount of memory, but also fixes a
potential crash if a wayland event were to arrive on the object after
the Qt level wrapper is destroyed.
Pick-to: 6.7
Change-Id: Id1c768b1f846925579220784e4312cede4efd095
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: David Redondo <qt@david-redondo.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/client/qwaylandtextinputv3.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandtextinputv3.cpp b/src/client/qwaylandtextinputv3.cpp index a9023a655..ad43ff1bc 100644 --- a/src/client/qwaylandtextinputv3.cpp +++ b/src/client/qwaylandtextinputv3.cpp @@ -28,6 +28,7 @@ QWaylandTextInputv3::QWaylandTextInputv3(QWaylandDisplay *display, QWaylandTextInputv3::~QWaylandTextInputv3() { + destroy(); } namespace { |