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
{{ message }}
Repository navigation
Commit da82282
Browse filesBrowse the repository at this point in the historyBrowse files
fix(g2p): fix destruction order to prevent use-after-free in Task destructors
Task holds a non-owning const ModuleSpec* pointer. ModuleSpec is owned by PackageData and deleted in closeAllLoadedPackages. The previous order (closeAllLoadedPackages then removeAllObjects) left m_spec dangling when Task destructors ran, causing use-after-free that corrupted the heap and later crashed in shared_ptr::_Decref. Fixed by reordering: removeAllObjects (release Tasks while ModuleSpec alive) then closeAllLoadedPackages (delete ModuleSpec) then delete categories.
0 commit comments