mudlet/3rdparty
Vadim Peretokin 9ac4f72050
fix: notepad, IRC client and toolbars outliving their profile (#9706)
#### Brief overview of PR changes/additions

- The notepad and IRC client are parentless windows freed only in
`Host::closeChildren()`; a `Host` destroyed without that call orphaned
them. `~Host()` now closes and deletes them, nulling each `QPointer`
first so both teardown paths stay single-delete. Closing (not just
deleting) the notepad also saves the notes and window state.
- The toolbars are not leaked at exit, but survived their profile on
screen holding a freed `TAction`; `~Host()` now deletes them
synchronously.

#### Motivation for adding to Mudlet

Same defect class PR #9700 "fix: trigger editor and deleted item
subtrees leaking memory" fixed for the editor. Two narrow production
paths reach `~Host()` without `closeChildren()` (`requestClose()`
returns early when `mpConsole` is already gone, and `~HostManager` runs
from `~mudlet`), and the test harness takes the second on every run.

#### Other info (issues closed, discussion etc)

Test case: new `HostChildTeardownTest` - three teardown orderings, each
fails without the fix; under ASan+LSan the binary goes from 851,208 to
3,334 leaked bytes (residue is the settings floor fixed in #9694). 79/79
functional tests pass twice; profile-close/quit with the notepad open
are clean under ASan on Xvfb.

Assisted-by: Claude:claude-opus-5
2026-08-11 19:13:19 +02:00
..
cmake-scripts Infrastructure: Update sanitizers.cmake to latest upstream (#9503) 2026-07-24 10:00:09 +02:00
communi infra: update communi to qt6 (#8584) 2025-11-29 13:43:21 +11:00
discord/rpc Improve: MacOS arm64 builds (#7469) 2024-10-21 05:29:16 +02:00
edbee-lib@a3ae51bbb8 fix: notepad, IRC client and toolbars outliving their profile (#9706) 2026-08-11 19:13:19 +02:00
kdtoolbox/singleshot_connect Infrastructure: Update singleshot_connect.h to latest upstream (#7108) 2024-01-26 07:13:12 +01:00
lcf@4aa25029ea Infrastructure: Update Lua code formatter to latest upstream branch (#8653) 2025-12-19 08:14:24 +01:00
qt-tags-widget@26f177cbce Infrastructure: Bump 3rdparty/qt-tags-widget from aa9a487 to 26f177c (#7994) 2025-08-08 18:41:21 +02:00
qtkeychain@875f77d9f6 Infrastructure: Bump 3rdparty/qtkeychain from 7718d0a to 875f77d (#9399) 2026-07-12 21:00:00 +02:00
sentry-native@a185ce80ba Infrastructure: Bump 3rdparty/sentry-native from a99d64e to a185ce8 (#9727) 2026-08-08 08:23:42 +02:00