mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Fix memory leak in Text Editor and FileSystem Dock
This commit is contained in:
parent
8c923fc617
commit
392f6f89cd
2 changed files with 9 additions and 7 deletions
|
|
@ -675,14 +675,14 @@ void CodeTextEditor::_line_col_changed() {
|
|||
}
|
||||
}
|
||||
|
||||
StringBuilder *sb = memnew(StringBuilder);
|
||||
sb->append("(");
|
||||
sb->append(itos(text_editor->cursor_get_line() + 1).lpad(3));
|
||||
sb->append(",");
|
||||
sb->append(itos(positional_column + 1).lpad(3));
|
||||
sb->append(")");
|
||||
StringBuilder sb;
|
||||
sb.append("(");
|
||||
sb.append(itos(text_editor->cursor_get_line() + 1).lpad(3));
|
||||
sb.append(",");
|
||||
sb.append(itos(positional_column + 1).lpad(3));
|
||||
sb.append(")");
|
||||
|
||||
line_and_col_txt->set_text(sb->as_string());
|
||||
line_and_col_txt->set_text(sb.as_string());
|
||||
}
|
||||
|
||||
void CodeTextEditor::_text_changed() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue