----------------------------------------------------------------------------- Memory deallocation -----------------------------------------------------------------------------
| 308 | // Memory deallocation |
| 309 | //----------------------------------------------------------------------------- |
| 310 | void CUtlMemoryBase::Purge() |
| 311 | { |
| 312 | if ( !IsExternallyAllocated() ) |
| 313 | { |
| 314 | if (m_pMemory) |
| 315 | { |
| 316 | UTLMEMORY_TRACK_FREE(); |
| 317 | FreePv( m_pMemory ); |
| 318 | m_pMemory = 0; |
| 319 | } |
| 320 | m_nAllocationCount = 0; |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | |
| 325 | void CUtlMemoryBase::Purge( int numElements, bool bRealloc ) |
no outgoing calls
no test coverage detected