You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #57017 from godotengine/string-name-static-false-unclaimed
This commit is contained in:
@@ -84,14 +84,17 @@ void StringName::cleanup() {
|
|||||||
for (int i = 0; i < STRING_TABLE_LEN; i++) {
|
for (int i = 0; i < STRING_TABLE_LEN; i++) {
|
||||||
while (_table[i]) {
|
while (_table[i]) {
|
||||||
_Data *d = _table[i];
|
_Data *d = _table[i];
|
||||||
|
if (d->static_count.get() != d->refcount.get()) {
|
||||||
lost_strings++;
|
lost_strings++;
|
||||||
if (d->static_count.get() != d->refcount.get() && OS::get_singleton()->is_stdout_verbose()) {
|
|
||||||
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||||
if (d->cname) {
|
if (d->cname) {
|
||||||
print_line("Orphan StringName: " + String(d->cname));
|
print_line("Orphan StringName: " + String(d->cname));
|
||||||
} else {
|
} else {
|
||||||
print_line("Orphan StringName: " + String(d->name));
|
print_line("Orphan StringName: " + String(d->name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_table[i] = _table[i]->next;
|
_table[i] = _table[i]->next;
|
||||||
memdelete(d);
|
memdelete(d);
|
||||||
|
|||||||
Reference in New Issue
Block a user