I have a NativeArray which stays alive during the whole game, using the Persistent allocator. Should I dispose it inside an OnApplicationQuit callback?
OnIn the editor, Unity gives me athe following leak detection error as follows after I restart playmodePlay Mode:
A Native Collection has not been disposed, resulting in a memory leak. Allocated from:...
I don't understand how I can be causing a memory leak after my application quits. Is the OS not reclaiming everything already?