CFX_GEModule::~CFX_GEModule() { if (m_pFontCache) { delete m_pFontCache; } m_pFontCache = NULL; if (m_pFontMgr) { delete m_pFontMgr; } m_pFontMgr = NULL; DestroyPlatform(); }
void Alg_DeInit(pIvhAlgo algo) { TraceLog(TRACE_LEVEL_INFORMATION, TRACE_ALGO, "%!FUNC! Entry"); if(algo->accelerometer != NULL) { DestroySensorAccelerometer(algo->accelerometer); algo->accelerometer = NULL; } if(algo->gyrometer != NULL) { DestroySensorGyroscope(algo->gyrometer); algo->gyrometer = NULL; } if(algo->magnetometer != NULL) { DestroySensorMagnetometer(algo->magnetometer); algo->magnetometer = NULL; } if(algo->orientation != NULL) { DestroySensorOrientation(algo->orientation); algo->orientation = NULL; } if(algo->compass != NULL) { DestroySensorCompass(algo->compass); algo->compass = NULL; } if(algo->inclinometer != NULL) { DestroySensorInclinometer(algo->inclinometer); algo->inclinometer = NULL; } if(algo->gyrometer6axis != NULL) { DestroySensorGyroscope6Axis(algo->gyrometer6axis); algo->gyrometer6axis = NULL; } if(algo->ambientlight != NULL) { DestroySensorAmbientlight(algo->ambientlight); algo->ambientlight = NULL; } if(algo->proximity != NULL) { DestroySensorBiometricProximity(algo->proximity); algo->proximity = NULL; } if(algo->thermometer != NULL) { DestroySensorTemperature(algo->thermometer); algo->thermometer = NULL; } if(algo->barometer != NULL) { DestroySensorBarometer(algo->barometer); algo->barometer = NULL; } if(algo->fusion != NULL) { DestroySensorFusion(algo->fusion); algo->fusion = NULL; } if(algo->platform != NULL) { DestroyPlatform(algo->platform); algo->platform = NULL; } //cjy...BackupRegistersDeInit(algo->dev); if(algo != NULL) { SAFE_FREE_POOL(algo, IVH_SENSOR_ALGO_POOL_TAG); algo = NULL; } TraceLog(TRACE_LEVEL_INFORMATION, TRACE_ALGO, "%!FUNC! Exit"); }