Project

Profile

Help

Revision 85a9912e

Added by Dave Delpratt 5 months ago

Saxon/C Seg Error fixes

View differences:

src/main/c/Saxon.C.API/SaxonProcessor.cpp
277 277

  
278 278
SaxonProcessor::~SaxonProcessor() {
279 279
    clearConfigurationProperties();
280
    SaxonProcessor::sxn_environ->env->DeleteGlobalRef(proc);
280
    if(proc) {
281
    	SaxonProcessor::sxn_environ->env->DeleteGlobalRef(proc);
282
    }
281 283
    if (versionStr != nullptr) {
282 284
        delete versionStr;
283 285
    }
......
521 523
    saxonCAPIClass = other.saxonCAPIClass;
522 524
    cwd = other.cwd;
523 525
    proc = SaxonProcessor::sxn_environ->env->NewGlobalRef(other.proc);
524
    //SaxonProcessor::sxn_environ= other.environ;
525 526
    parameters = other.parameters;
526 527
    configProperties = other.configProperties;
527 528
    licensei = other.licensei;
......
535 536
    saxonCAPIClass = other.saxonCAPIClass;
536 537
    cwd = other.cwd;
537 538
    proc = SaxonProcessor::sxn_environ->env->NewGlobalRef(other.proc);
538
    //SaxonProcessor::sxn_environ= other.environ;
539 539
    parameters = other.parameters;
540 540
    configProperties = other.configProperties;
541 541
    licensei = other.licensei;

Also available in: Unified diff