Skip to content
Snippets Groups Projects
Commit a01b1332 authored by Alberto Massari's avatar Alberto Massari
Browse files

If getXSModel was invoked when schema caching was off and nothing had changed,...

If getXSModel was invoked when schema caching was off and nothing had changed, a new (empty) model was created even if a non-empty one was already available


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176018 13f79535-47bb-0310-9956-ffa450edef68
parent 4c146393
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,9 @@
/*
* $Log$
* Revision 1.27 2004/09/02 14:13:13 amassari
* If getXSModel was invoked when schema caching was off and nothing had changed, a new (empty) model was created even if a non-empty one was already available
*
* Revision 1.26 2004/05/21 15:19:16 peiyongz
* [jira1216] GrammarResolver never clears internal cache of
* Grammar instances -- patch from David Bertoni
......@@ -567,8 +570,9 @@ XSModel *GrammarResolver::getXSModel()
fGrammarsToAddToXSModel->removeAllElements();
fXSModel = xsModel;
}
else
else if (!fXSModel)
{
// create a new model only if we didn't have one already
fXSModel = new (fMemoryManager) XSModel(0, this, fMemoryManager);
}
return fXSModel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment