mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
GridMapEditorPlgn: fix a leak
This commit is contained in:
parent
47676cfa98
commit
5cf331588a
@ -1259,9 +1259,10 @@ GridMapEditor::~GridMapEditor() {
|
||||
VisualServer::get_singleton()->free(grid_instance[i]);
|
||||
if (cursor_instance.is_valid())
|
||||
VisualServer::get_singleton()->free(cursor_instance);
|
||||
if (selection_level_instance[i].is_valid()) {
|
||||
if (selection_level_instance[i].is_valid())
|
||||
VisualServer::get_singleton()->free(selection_level_instance[i]);
|
||||
}
|
||||
if (selection_level_mesh[i].is_valid())
|
||||
VisualServer::get_singleton()->free(selection_level_mesh[i]);
|
||||
}
|
||||
|
||||
VisualServer::get_singleton()->free(selection_mesh);
|
||||
|
Loading…
Reference in New Issue
Block a user