Merge pull request #10121 from endragor/fix-cleanup-typo

Fix is_class check typo in ObjectDB::cleanup
This commit is contained in:
Thomas Herzog 2017-08-06 14:32:14 +02:00 committed by GitHub
commit a18c8606bb

View file

@ -2015,7 +2015,7 @@ void ObjectDB::cleanup() {
String node_name;
if (instances[*K]->is_class("Node"))
node_name = " - Node Name: " + String(instances[*K]->call("get_name"));
if (instances[*K]->is_class("Resoucre"))
if (instances[*K]->is_class("Resource"))
node_name = " - Resource Name: " + String(instances[*K]->call("get_name")) + " Path: " + String(instances[*K]->call("get_path"));
print_line("Leaked Instance: " + String(instances[*K]->get_class()) + ":" + itos(*K) + node_name);
}