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>
This commit is contained in:
David Edmundson 2023-12-15 08:58:15 +00:00 committed by Liang Qi
parent d13a291828
commit 89dff9764a

View File

@ -28,6 +28,7 @@ QWaylandTextInputv3::QWaylandTextInputv3(QWaylandDisplay *display,
QWaylandTextInputv3::~QWaylandTextInputv3() QWaylandTextInputv3::~QWaylandTextInputv3()
{ {
destroy();
} }
namespace { namespace {