Skip to content

Commit

Permalink
fix: app crashed when window destroyed in quick
Browse files Browse the repository at this point in the history
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
  • Loading branch information
18202781743 committed Dec 2, 2024
1 parent 72a0485 commit 5c543d8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xcb/dnotitlebarwindowhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ DNoTitlebarWindowHelper::~DNoTitlebarWindowHelper()
{
g_pressPoint.remove(this);

if (VtableHook::hasVtable(m_window)) {
VtableHook::resetVtable(m_window);
}

mapped.remove(qobject_cast<QWindow*>(parent()));

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

0 comments on commit 5c543d8

Please sign in to comment.