From 075a1fd1d67c6e347ab40f460819067b947f92f6 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周三, 06 12月 2023 18:06:54 +0800 Subject: [PATCH] fix mem leak --- src/core/corewindowagent_p.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/corewindowagent_p.h b/src/core/corewindowagent_p.h index c30cdbd..6b1912d 100644 --- a/src/core/corewindowagent_p.h +++ b/src/core/corewindowagent_p.h @@ -16,9 +16,12 @@ CoreWindowAgent *q_ptr; // no need to initialize - void setup(QWindow *window, WindowItemDelegate *delegate); + bool setup(const QObject *host, const WindowItemDelegate *delegate); - AbstractWindowContext *m_eventHandler{}; + AbstractWindowContext *context; + + private: + Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate) }; } -- Gitblit v1.9.1