You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2004/05/21 17:19:16 UTC
cvs commit: xml-xerces/c/src/xercesc/validators/common GrammarResolver.cpp
peiyongz 2004/05/21 08:19:16
Modified: c/src/xercesc/validators/common GrammarResolver.cpp
Log:
[jira1216] GrammarResolver never clears internal cache of
Grammar instances -- patch from David Bertoni
Revision Changes Path
1.26 +8 -1 xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp
Index: GrammarResolver.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- GrammarResolver.cpp 17 Feb 2004 15:53:50 -0000 1.25
+++ GrammarResolver.cpp 21 May 2004 15:19:16 -0000 1.26
@@ -57,6 +57,10 @@
/*
* $Log$
+ * Revision 1.26 2004/05/21 15:19:16 peiyongz
+ * [jira1216] GrammarResolver never clears internal cache of
+ * Grammar instances -- patch from David Bertoni
+ *
* Revision 1.25 2004/02/17 15:53:50 neilg
* fix potential memory leak
*
@@ -403,6 +407,10 @@
fGrammarPool->clear();
// Even though fXSModel and fGrammarPoolXSModel will be invalid don't touch
// them here as getXSModel will handle this.
+
+ //to clear all other references to the grammars just deleted from fGrammarPool
+ fGrammarFromPool->removeAll();
+
}
void GrammarResolver::cacheGrammars()
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org