| 150 | } |
| 151 | |
| 152 | void DeleteContext(HContext context) |
| 153 | { |
| 154 | if (!context) |
| 155 | { |
| 156 | return; |
| 157 | } |
| 158 | assert(context->m_BlockDatas[0].m_AllocationCount == 0); |
| 159 | for (uint16_t i = 1; i < MAX_BLOCK_COUNT; ++i) |
| 160 | { |
| 161 | assert(context->m_Blocks[i] == 0x0); |
| 162 | } |
| 163 | free(context); |
| 164 | } |
| 165 | } |