From f87d0bf9ff8214222a3edd2a94efff16524b6f35 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 15 Dec 2023 08:58:15 +0000 Subject: 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/client/qwaylandtextinputv3.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client') 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 { -- cgit v1.2.3