Fix Mono check for unsafe object references
(cherry picked from commit 09534e2922
)
This commit is contained in:
parent
57151c5e31
commit
57de8397b2
|
@ -161,11 +161,11 @@ void CSharpLanguage::finish() {
|
|||
|
||||
#ifdef DEBUG_ENABLED
|
||||
for (Map<ObjectID, int>::Element *E = unsafe_object_references.front(); E; E = E->next()) {
|
||||
const ObjectID &id = E->get();
|
||||
const ObjectID &id = E->key();
|
||||
Object *obj = ObjectDB::get_instance(id);
|
||||
|
||||
if (obj) {
|
||||
ERR_PRINTS("Leaked unsafe reference to object: " + obj->get_class() + ":" + itos(id));
|
||||
ERR_PRINTS("Leaked unsafe reference to object: " + obj->to_string());
|
||||
} else {
|
||||
ERR_PRINTS("Leaked unsafe reference to deleted object: " + itos(id));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue