From 89dff9764a2ae8832503ed34b5e2b5561da1e4cc Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 15 Dec 2023 08:58:15 +0000 Subject: [PATCH] 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 Reviewed-by: David Redondo --- src/plugins/platforms/wayland/qwaylandtextinputv3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp b/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp index a9023a655e1..ad43ff1bc09 100644 --- a/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp +++ b/src/plugins/platforms/wayland/qwaylandtextinputv3.cpp @@ -28,6 +28,7 @@ QWaylandTextInputv3::QWaylandTextInputv3(QWaylandDisplay *display, QWaylandTextInputv3::~QWaylandTextInputv3() { + destroy(); } namespace {