| 77 | lastNum = countInBlock; |
| 78 | } |
| 79 | ~ObjectBlockPool() |
| 80 | { |
| 81 | if(!activePages) |
| 82 | return; |
| 83 | do |
| 84 | { |
| 85 | MyLargeBlock* following = activePages->next; |
| 86 | NULLC::dealloc(activePages); |
| 87 | activePages = following; |
| 88 | }while(activePages != NULL); |
| 89 | freeBlocks = &lastBlock; |
| 90 | activePages = NULL; |
| 91 | lastNum = countInBlock; |
| 92 | sortedPages.reset(); |
| 93 | } |
| 94 | |
| 95 | void* Alloc() |
| 96 | { |