Project

Profile

Help

Revision 55b80284

Added by O'Neil Delpratt 5 months ago

Saxon/C added memory debugging and bug fixes

View differences:

src/main/c/Saxon.C.API/XdmValue.cpp
6 6
#include "XdmMap.h"
7 7
#include "XdmArray.h"
8 8

  
9

  
10
#ifdef MEM_DEBUG
11
#define new new(__FILE__, __LINE__)
12
#endif
13

  
14

  
9 15
XdmValue::XdmValue(const XdmValue &other) {
10 16
	//SaxonProcessor *proc = other.proc; //TODO
11 17
	valueType = other.valueType;
......
127 133

  
128 134
XdmValue::~XdmValue() {
129 135
	//bool safeToClear = false;
130
	//std::cout<<"xdmValue destructor size= "<<values.size()<<" ref="<<getRefCount()<<" Pointer = "<<(this)<<std::endl;
131 136
	if(values.size() > 0) {
132 137
        for (size_t i = 0; i < values.size(); i++) {
133 138
            if (values[i] != nullptr) {

Also available in: Unified diff