Free vertex_lights_2d_map in World2D's destructor.

This commit is contained in:
Relintai 2024-03-25 09:17:44 +01:00
parent d08718051d
commit d7a54d702d

View File

@ -409,5 +409,10 @@ World2D::~World2D() {
RenderingServer::get_singleton()->free(canvas); RenderingServer::get_singleton()->free(canvas);
Physics2DServer::get_singleton()->free(space); Physics2DServer::get_singleton()->free(space);
Navigation2DServer::get_singleton()->free(navigation_map); Navigation2DServer::get_singleton()->free(navigation_map);
#ifdef MODULE_VERTEX_LIGHTS_2D_ENABLED
VertexLights2DServer::get_singleton()->free(vertex_lights_2d_map);
#endif
memdelete(indexer); memdelete(indexer);
} }