1
0
mirror of synced 2026-01-25 11:56:22 +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
..
2025-03-20 17:20:36 +13:00
2025-04-08 11:58:05 +12:00
2024-05-21 16:18:03 +02:00
2025-04-22 17:42:52 +12:00
2025-05-10 09:59:13 +12:00
2025-03-19 18:28:50 +01:00
2024-08-07 13:02:00 +02:00
2024-06-07 08:26:59 +02:00
2024-11-04 13:16:40 +01:00
2024-12-18 14:58:31 +01:00
2025-04-08 11:58:05 +12:00
2025-04-08 11:58:05 +12:00
2024-12-06 11:25:45 +01:00
2025-04-08 11:58:05 +12:00
2024-09-29 17:15:59 +02:00
2021-08-11 13:34:10 +02:00
2025-04-08 11:58:05 +12:00