This repository was archived by the owner on May 24, 2026. It is now read-only.
Commit bf30486
Pin DLL to prevent unload crash from libgsf DllMain
Use GetModuleHandleExW with GET_MODULE_HANDLE_EX_FLAG_PIN to prevent
the DLL from being unloaded during process exit. This stops libgsf's
DllMain(DETACH) from running and crashing when it tries to clean up
GLib objects that are in an inconsistent state during termination.
Also removes MsiCloseAllHandles from ProcessExit and removes the
MsiHandle finalizer - the OS reclaims all memory on exit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8757bcf commit bf30486
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
319 | 326 | | |
320 | 327 | | |
321 | 328 | | |
| |||
0 commit comments