GridMapEditorPlgn: fix a leak
This commit is contained in:
parent
47676cfa98
commit
5cf331588a
1 changed files with 3 additions and 2 deletions
|
@ -1259,9 +1259,10 @@ GridMapEditor::~GridMapEditor() {
|
||||||
VisualServer::get_singleton()->free(grid_instance[i]);
|
VisualServer::get_singleton()->free(grid_instance[i]);
|
||||||
if (cursor_instance.is_valid())
|
if (cursor_instance.is_valid())
|
||||||
VisualServer::get_singleton()->free(cursor_instance);
|
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]);
|
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);
|
VisualServer::get_singleton()->free(selection_mesh);
|
||||||
|
|
Loading…
Reference in a new issue