Skip to content

Commit

Permalink
Merge pull request #57017 from godotengine/string-name-static-false-u…
Browse files Browse the repository at this point in the history
…nclaimed
  • Loading branch information
akien-mga authored Feb 5, 2022
2 parents bd32dd4 + 0e659b4 commit 9d1626b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions core/string/string_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,15 @@ void StringName::cleanup() {
for (int i = 0; i < STRING_TABLE_LEN; i++) {
while (_table[i]) {
_Data *d = _table[i];
lost_strings++;
if (d->static_count.get() != d->refcount.get() && OS::get_singleton()->is_stdout_verbose()) {
if (d->cname) {
print_line("Orphan StringName: " + String(d->cname));
} else {
print_line("Orphan StringName: " + String(d->name));
if (d->static_count.get() != d->refcount.get()) {
lost_strings++;

if (OS::get_singleton()->is_stdout_verbose()) {
if (d->cname) {
print_line("Orphan StringName: " + String(d->cname));
} else {
print_line("Orphan StringName: " + String(d->name));
}
}
}

Expand Down

0 comments on commit 9d1626b

Please sign in to comment.