Added missing destructor for Navigation2D
Although destructor call was missing, it still doesn't heal #36537 memory leaks. Further description how that might be overcome - on GitHub Partialy covers #36537
This commit is contained in:
parent
2d980f6f13
commit
51cbf414fc
@ -88,3 +88,7 @@ Navigation2D::Navigation2D() {
|
||||
set_cell_size(10); // Ten pixels
|
||||
set_edge_connection_margin(100);
|
||||
}
|
||||
|
||||
Navigation2D::~Navigation2D() {
|
||||
Navigation2DServer::get_singleton()->free(map);
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
RID get_closest_point_owner(const Vector2 &p_point) const;
|
||||
|
||||
Navigation2D();
|
||||
~Navigation2D();
|
||||
};
|
||||
|
||||
#endif // NAVIGATION_2D_H
|
||||
|
Loading…
Reference in New Issue
Block a user