Project

Profile

Help

Revision 306962bc

Added by O'Neil Delpratt 5 months ago

Saxon/C development - Added multi-threading test case and other bug fixes

View differences:

src/main/c/Saxon.C.API/XdmNode.cpp
49 49

  
50 50
    }
51 51

  
52
    XdmNode::~XdmNode() {
53
        delete baseURI;
54
        delete nodeName;
55
        if(children != nullptr) {
56
            for (int p=0; p < childCount; ++p) {
57
                delete children[p];
58

  
59
            }
60
            delete [] children;
61
        }
62

  
63
        if(attrCount > 0) {
64
            for (int p=0; p < attrCount; ++p) {
65
                delete attrValues[p];
66

  
67
            }
68
            delete [] attrValues;
69
        }
70

  
71

  
72
    }
73

  
52 74
    const char * XdmNode::getNodeName(){
53 75
	
54 76
	if(nodeName != nullptr) {

Also available in: Unified diff