Project

Profile

Help

Revision 5401a5ae

Added by O'Neil Delpratt almost 2 years ago

Saxon/C Development

View differences:

latest9.9/hec/Saxon.C.API/XdmItem.h
28 28
	//std::cerr<<std::endl<<"XdmItem destructor called, refCount"<<getRefCount()<<std::endl;
29 29
	if(getRefCount()<1){
30 30
	  if(value !=NULL && proc != NULL && SaxonProcessor::jvmCreatedCPP>0) {
31
			SaxonProcessor::sxn_environ->env->DeleteLocalRef(value->xdmvalue);
31
			SaxonProcessor::sxn_environ->env->DeleteGlobalRef(value->xdmvalue);
32 32
	  }
33 33
	  free(value);
34 34
	  if(stringValue.empty()) {

Also available in: Unified diff