See [[ https://code.wildfiregames.com/rP22511#inline-3747 | here ]] - rP22511 accidentally introduced a memory leak.
This also changes state.tiles to a unique_ptr, as we were transferring ownership to m_DebugGrid and this seems quite dangerous and likely to leak someday - deleting the debug code would actually leak.