This repository was archived by the owner on May 24, 2026. It is now read-only.
Commit 6a3b102
Add DLL destructor to clean up handles on unload
When the .NET test host exits, it unloads the DLL without calling
MsiCloseAllHandles. This leaves GLib objects in a partially-freed
state, causing g_object_unref crashes during GLib's atexit cleanup.
Add a __attribute__((destructor)) that calls handle_table_close_all()
and gsf_shutdown() to properly release all handles and shut down
libgsf before the DLL is unloaded.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent abb58bc commit 6a3b102
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
0 commit comments