Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Revision 03fcd3f9

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fix

View differences:

src/main/c/Saxon.C.API/SaxonProcessor.cpp
542 542
    exception = other.exception;
543 543
}
544 544

  
545

  
546

  
547
void SaxonProcessor::setResourcesDirectory(const char *dir){}
548

  
545 549
XsltProcessor *SaxonProcessor::newXsltProcessor() {
546 550
    return (new XsltProcessor(this, cwd));
547 551
}
src/main/c/Saxon.C.API/SaxonProcessor.h
390 390
     * set saxon resources directory
391 391
     * @deprecated - It is no longer required to explicitly specifiy the resource directory
392 392
    */
393
    void setResourcesDirectory(const char *dir){}
393
    void setResourcesDirectory(const char *dir);
394 394

  
395 395
    /**
396 396
     * set catalog to be used in Saxon
src/main/c/Saxon.C.API/XsltExecutable.cpp
256 256
            }
257 257
        }
258 258

  
259
        SaxonProcessor::sxn_environ->env->DeleteGlobalRef(selection);
260
        selection = nullptr;
259
        if(selection) {
260
            SaxonProcessor::sxn_environ->env->DeleteGlobalRef(selection);
261
            selection = nullptr;
262
        }
261 263
    } else {
262 264
        for (std::map<std::string, XdmValue *>::iterator itr = parameters.begin(); itr != parameters.end(); itr++) {
263 265

  
......
267 269
            }
268 270

  
269 271
        }
270

  
271
        selection = nullptr;
272
        if(selection) {
273
            SaxonProcessor::sxn_environ->env->DeleteGlobalRef(selection);
274
            selection = nullptr;
275
        }
272 276
    }
273 277
    parameters.clear();
274 278

  

Also available in: Unified diff