dpoCKernel::~dpoCKernel() { DEBUG_LOG_DESTROY("dpoCKernel", this); if (kernel != NULL) { clReleaseKernel(kernel); } parent = NULL; }
dpoCContext::~dpoCContext() { DEBUG_LOG_DESTROY("dpoCContext", this); if (buildLog != NULL) { nsMemory::Free(buildLog); } if (cmdQueue != NULL) { clReleaseCommandQueue(cmdQueue); } }
CData::~CData() { DEBUG_LOG_DESTROY("CData", this); if (m_memObj) { #ifdef INCREMENTAL_MEM_RELEASE deferFree(m_memObj); #else // INCREMENTAL_MEM_RELEASE clReleaseMemObject(m_memObj); #endif // INCREMENTAL_MEM_RELEASE } if (m_queue && m_isRetained) { DEBUG_LOG_STATUS("~CData", "releasing queue object"); clReleaseCommandQueue(m_queue); } m_parent = 0; }
dpoCContext::~dpoCContext() { DEBUG_LOG_DESTROY("dpoCContext", this); #ifdef INCREMENTAL_MEM_RELEASE // disable deferred free defer_max = 0; // free the pending queue while (CheckFree()) {}; nsMemory::Free(defer_list); defer_list = NULL; #endif /* INCREMENTAL_MEM_RELEASE */ if (buildLog != NULL) { nsMemory::Free(buildLog); } if (cmdQueue != NULL) { clReleaseCommandQueue(cmdQueue); } }
dpoCInterface::~dpoCInterface() { DEBUG_LOG_DESTROY("dpoCInterface", this); }
CInterface::~CInterface() { DEBUG_LOG_DESTROY("CInterface", this); if(platforms!=NULL) platforms = NULL; }