From 5c543d83b77c17532df2a908d1e5faf0f5f7bbe6 Mon Sep 17 00:00:00 2001 From: Ye ShanShan Date: Mon, 2 Dec 2024 15:24:23 +0800 Subject: [PATCH] fix: app crashed when window destroyed in quick ghostVtable will be released whenever Window is destroyed by delete or deleteLater function, we don't need to resetVtable, and we shouldn't resetVtable when destructing m_window. pms: BUG-368399 --- xcb/dnotitlebarwindowhelper.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xcb/dnotitlebarwindowhelper.cpp b/xcb/dnotitlebarwindowhelper.cpp index e7377691..88465c0e 100644 --- a/xcb/dnotitlebarwindowhelper.cpp +++ b/xcb/dnotitlebarwindowhelper.cpp @@ -81,10 +81,6 @@ DNoTitlebarWindowHelper::~DNoTitlebarWindowHelper() { g_pressPoint.remove(this); - if (VtableHook::hasVtable(m_window)) { - VtableHook::resetVtable(m_window); - } - mapped.remove(qobject_cast(parent())); if (m_window->handle()) { // 当本地窗口还存在时,移除设置过的窗口属性