MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / destroy

Method destroy

src/include/pugixml.cpp:9594–9603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected