1
0
mirror of synced 2026-01-22 10:41:43 +00:00
Krystine Sherwin af75dce660
Fix Crashes with GCC 15 #5088
When building `WITH_PYTHON`, where a global list of modules is maintained, deleting a module also erases the entry in said global list.  This can lead to memory corruption if the global list is destructed before the module.
Using `on_shutdown()` instead means the module destructor is explicitly called before the global list can be destructed, preventing the issue.
Also add a comment to `Pass::~Pass()` to suggest the same for future passes that might try to use that (and see this commit in the blame if they need a reason why).
2025-05-10 09:59:13 +12:00
..
2024-11-29 12:53:29 +13:00
2024-12-18 15:09:25 +01:00
2025-04-26 18:34:21 +02:00
2025-01-24 12:38:03 +01:00
2025-01-24 12:38:03 +01:00
2025-03-18 13:51:09 +01:00
2024-09-05 11:17:12 +02:00
2025-05-09 22:33:30 +02:00
2025-03-19 13:43:44 +01:00
2024-09-24 17:47:46 +02:00
2024-12-03 13:15:33 +13:00
2025-05-10 09:59:13 +12:00
2025-04-11 04:12:34 +12:00
2025-04-08 11:59:42 +12:00
2024-02-06 18:01:26 +01:00
2025-04-08 11:58:05 +12:00
2025-01-14 12:39:15 +01:00