| 10413 | } |
| 10414 | |
| 10415 | static void destroy(void* ptr) |
| 10416 | { |
| 10417 | if (!ptr) |
| 10418 | return; |
| 10419 | |
| 10420 | // free all allocated pages |
| 10421 | static_cast<xpath_query_impl*>(ptr)->alloc.release(); |
| 10422 | |
| 10423 | // free allocator memory (with the first page) |
| 10424 | xml_memory::deallocate(ptr); |
| 10425 | } |
| 10426 | |
| 10427 | xpath_query_impl() : |
| 10428 | root(0), |