Merge pull request #151 from Nick007J/master

fixed references leak
This commit is contained in:
aap 2019-07-20 12:34:59 +02:00 committed by GitHub
commit c5855b3a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,7 +535,7 @@ CEntity::ResolveReferences(void)
for(ref = m_pFirstReference; ref->next; ref = ref->next) for(ref = m_pFirstReference; ref->next; ref = ref->next)
; ;
ref->next = CReferences::pEmptyList; ref->next = CReferences::pEmptyList;
CReferences::pEmptyList = ref; CReferences::pEmptyList = m_pFirstReference;
m_pFirstReference = nil; m_pFirstReference = nil;
} }
} }