Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes.
This commit is contained in:
parent
ec895536a6
commit
fe26418374
|
|
@ -85,6 +85,9 @@ TWOdestroy(TWOdevice *pDevice)
|
|||
struct sTWOcontact* pFCtmp = pDevice->pFirstContact;
|
||||
while (pFCtmp) {
|
||||
struct sTWOcontact* pFCtmpnext = pFCtmp->next;
|
||||
if (pFCtmp->pNodes) {
|
||||
FREE(pFCtmp->pNodes);
|
||||
}
|
||||
FREE(pFCtmp);
|
||||
pFCtmp = pFCtmpnext;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue