The channel data needs to be freed for some 2D Cider devices. This shows up with some of the examples/cider/parallel circuits.
This commit is contained in:
parent
c6edbe44db
commit
1e58692e6d
|
|
@ -74,6 +74,15 @@ TWOdestroy(TWOdevice *pDevice)
|
|||
FREE( pDevice->elemArray );
|
||||
}
|
||||
|
||||
if (pDevice->pChannel) {
|
||||
TWOchannel* pCtmp = pDevice->pChannel;
|
||||
while (pCtmp) {
|
||||
TWOchannel* pCtmpnext = pCtmp->next;
|
||||
FREE(pCtmp);
|
||||
pCtmp = pCtmpnext;
|
||||
}
|
||||
}
|
||||
|
||||
if (pDevice->pMaterials) {
|
||||
TWOmaterial* pMtmp = pDevice->pMaterials;
|
||||
while (pMtmp) {
|
||||
|
|
@ -105,9 +114,6 @@ TWOdestroy(TWOdevice *pDevice)
|
|||
FREE(pDevice->yScale);
|
||||
}
|
||||
|
||||
/* destroy the channels */
|
||||
/* NOT IMPLEMENTED */
|
||||
|
||||
FREE( pDevice );
|
||||
{
|
||||
CiderLoaded(-1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue