I run AS in a multi-threaded environment, using a custom allocator which (in debug) tracks allocations to detect memory leaks.
Unfortunately, in this scenario AS allocates data in a thread local variable, and doesn't free that data anymore. This happens in asCThreadManager::GetLocalData().
I call ShutDownAndRelease, which does call asCThreadManager::CleanupLocalData(), but that only frees the memory of the active thread.
I see no way to free the memory of the remaining threads.
Any ideas? Anybody else solved this before?