Juce asserts

I’d like to know when JUCE asserts are called: is it before or after static destructors are called?
I ask this because an assert is triggered by a static unique_ptr I have and I’d like to be sure
that it’s not a leak, just a false alarm.

You mean “leak detector” rather than “assert”, right? Asserts are a more general thing.

The leak detection makes use of static destruction, so the order in which it happens compared to other static destructors is undefined. If you really want to make sure static objects get cleaned up before the leak detection happens, you’d need to explicitly clear those objects when you app closes.

Yes, that’s what I meant, sorry.
Thanks for the clarification