Skip to content

Commit 51dcc1b

Browse files
committed
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
1 parent 8e64cc9 commit 51dcc1b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

xcb/dnotitlebarwindowhelper.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ DNoTitlebarWindowHelper::~DNoTitlebarWindowHelper()
8181
{
8282
g_pressPoint.remove(this);
8383

84-
if (VtableHook::hasVtable(m_window)) {
85-
VtableHook::resetVtable(m_window);
86-
}
87-
8884
mapped.remove(qobject_cast<QWindow*>(parent()));
8985

9086
if (m_window->handle()) { // 当本地窗口还存在时,移除设置过的窗口属性

0 commit comments

Comments
 (0)