summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pugixml.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 574bb08..364bee4 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -237,8 +237,6 @@ namespace pugi
namespace pugi
{
- struct xml_document_struct;
-
static const uintptr_t xml_memory_page_alignment = 32;
static const uintptr_t xml_memory_page_pointer_mask = ~(xml_memory_page_alignment - 1);
static const uintptr_t xml_memory_page_name_allocated_mask = 16;
@@ -257,11 +255,6 @@ namespace pugi
{
}
- ~xml_allocator()
- {
- if (_root) _root->busy_size = _busy_size;
- }
-
xml_memory_page* allocate_page(size_t data_size)
{
#ifdef __GNUC__
@@ -282,7 +275,7 @@ namespace pugi
xml_memory_page* page = new (page_memory) xml_memory_page();
page->memory = memory;
- page->allocator = this;
+ page->allocator = _root->allocator;
return page;
}