added debugging code to track bug

This commit is contained in:
David White 2008-03-28 05:11:19 +00:00
parent 2766e81b42
commit f7e4e425f6

View file

@ -244,6 +244,9 @@ node::~node()
delete *j;
}
}
//TODO: DEBUG CODE. Fill with a memory pattern to debug crashing!
memset(this, 0xab, sizeof(*this));
}
namespace {
@ -690,6 +693,9 @@ document::~document()
delete root_;
detach_list();
//TODO: DEBUG CODE. Fill with a memory pattern to debug crashing!
memset(this, 0xab, sizeof(*this));
}
const char* document::dup_string(const char* str)