Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: app crashed when window destroyed in quick #261

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

18202781743
Copy link
Contributor

@18202781743 18202781743 commented Dec 2, 2024

  • fix: hasVtable is incorrect when destructing
  • fix: app crashed when window destroyed in quick

@18202781743 18202781743 changed the title fix fix: app crashed when window destroyed in quick Dec 2, 2024
deepin-ci-robot added a commit to linuxdeepin/qt6platform-plugins that referenced this pull request Dec 2, 2024
Synchronize source files from linuxdeepin/qt5platform-plugins.

Source-pull-request: linuxdeepin/qt5platform-plugins#261
Destruct function should be called by 'autoCleanVtable' instead of
'callOriginalFun'.
'glostVtable' should be delete before calling origin destruct,
because 'resetVtable' maybe called when destructing origin destruct.

pms: BUG-368399
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
@deepin-ci-robot
Copy link
Contributor

deepin pr auto review

关键摘要:

  • VtableHook::autoCleanVtable函数中,先判断虚表是否存在,再调用析构函数,确保了在析构函数执行时虚表仍然存在。
  • DNoTitlebarWindowHelper的析构函数中,移除了对虚表的检查和重置,这可能会影响窗口的析构过程。

是否建议立即修改:

  • 是,需要确保在DNoTitlebarWindowHelper的析构函数中正确处理虚表,以避免潜在的内存泄漏或其他未定义行为。

deepin-ci-robot added a commit to linuxdeepin/qt6platform-plugins that referenced this pull request Dec 2, 2024
Synchronize source files from linuxdeepin/qt5platform-plugins.

Source-pull-request: linuxdeepin/qt5platform-plugins#261
@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, ComixHe, kegechen

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kegechen
Copy link
Contributor

kegechen commented Dec 2, 2024

pms: Bug-289673

@18202781743 18202781743 merged commit 51dcc1b into linuxdeepin:master Dec 2, 2024
18 of 20 checks passed
18202781743 pushed a commit to linuxdeepin/qt6platform-plugins that referenced this pull request Dec 2, 2024
Synchronize source files from linuxdeepin/qt5platform-plugins.

Source-pull-request: linuxdeepin/qt5platform-plugins#261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants