You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cleanup): clear global enum-wrapper registry before tearing down class infos
ASan reported a heap-use-after-free during teardown: the global registry
of top-level enum wrappers held raw pointers to `PythonQtClassInfo` that
were deleted in `~PythonQtPrivate()`. Subsequent lookups (e.g., triggered
by late attribute access) read freed memory.
- Add `PythonQtClassInfo::clearGlobalNamespaceWrappers()`
- Call it in `~PythonQtPrivate()` before `qDeleteAll(_knownClassInfos)`
- Explicitly clear `_knownClassInfos` after deletion to avoid stale entries
0 commit comments