| 9592 | } |
| 9593 | |
| 9594 | static void destroy(void* ptr) |
| 9595 | { |
| 9596 | if (!ptr) return; |
| 9597 | |
| 9598 | // free all allocated pages |
| 9599 | static_cast<xpath_query_impl*>(ptr)->alloc.release(); |
| 9600 | |
| 9601 | // free allocator memory (with the first page) |
| 9602 | xml_memory::deallocate(ptr); |
| 9603 | } |
| 9604 | |
| 9605 | xpath_query_impl(): root(0), alloc(&block) |
| 9606 | { |