Skip to content

Commit

Permalink
Free vertex_lights_2d_map in World2D's destructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 25, 2024
1 parent d087180 commit d7a54d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scene/resources/world_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,5 +409,10 @@ World2D::~World2D() {
RenderingServer::get_singleton()->free(canvas);
Physics2DServer::get_singleton()->free(space);
Navigation2DServer::get_singleton()->free(navigation_map);

#ifdef MODULE_VERTEX_LIGHTS_2D_ENABLED
VertexLights2DServer::get_singleton()->free(vertex_lights_2d_map);
#endif

memdelete(indexer);
}

0 comments on commit d7a54d7

Please sign in to comment.