| 1109 | lastNum = countInBlock; |
| 1110 | } |
| 1111 | ~ObjectBlockPool() |
| 1112 | { |
| 1113 | if(!activePages) |
| 1114 | return; |
| 1115 | do |
| 1116 | { |
| 1117 | MyLargeBlock* following = activePages->next; |
| 1118 | NULLC::dealloc(activePages); |
| 1119 | activePages = following; |
| 1120 | }while(activePages != NULL); |
| 1121 | freeBlocks = &lastBlock; |
| 1122 | activePages = NULL; |
| 1123 | lastNum = countInBlock; |
| 1124 | sortedPages.reset(); |
| 1125 | } |
| 1126 | |
| 1127 | void* Alloc() |
| 1128 | { |