static void DisposeSystemGammas (Ptr* ppSystemGammas) { precSystemGamma pSysGammaIn; if (ppSystemGammas) { pSysGammaIn = (precSystemGamma) *ppSystemGammas; if (pSysGammaIn) { short i; for (i = 0; i < pSysGammaIn->numDevices; i++) if (pSysGammaIn->devGamma [i]) { DisposeGammaTable ((Ptr) pSysGammaIn->devGamma [i]->pDeviceGamma); DisposePtr ((Ptr) pSysGammaIn->devGamma [i]); } DisposePtr ((Ptr) pSysGammaIn->devGamma); DisposePtr ((Ptr) pSysGammaIn); *ppSystemGammas = NULL; } } }
static void DisposeSystemGammas (Ptr* ppSystemGammas) { precSystemGamma pSysGammaIn; if (ppSystemGammas) { pSysGammaIn = (precSystemGamma) *ppSystemGammas; if (pSysGammaIn) { short i; for (i = 0; i < pSysGammaIn->numDevices; i++) /* for all devices */ if (pSysGammaIn->devGamma [i]) /* if pointer is valid */ { DisposeGammaTable ((Ptr) pSysGammaIn->devGamma [i]->pDeviceGamma); /* dump gamma table */ DisposePtr ((Ptr) pSysGammaIn->devGamma [i]); /* dump device info */ } DisposePtr ((Ptr) pSysGammaIn->devGamma); /* dump device pointer array */ DisposePtr ((Ptr) pSysGammaIn); /* dump system structure */ *ppSystemGammas = NULL; } } }