You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2005/03/20 15:53:35 UTC
cvs commit: xml-xerces/c/src/xercesc/validators/common GrammarResolver.cpp
knoaman 2005/03/20 06:53:35
Modified: c/src/xercesc/validators/common GrammarResolver.cpp
Log:
[jira 1381] Memory leak in GrammarResolver - patch by Christian Will.
Revision Changes Path
1.31 +4 -2 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.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- GrammarResolver.cpp 3 Dec 2004 17:00:13 -0000 1.30
+++ GrammarResolver.cpp 20 Mar 2005 14:53:35 -0000 1.31
@@ -16,6 +16,9 @@
/*
* $Log$
+ * Revision 1.31 2005/03/20 14:53:35 knoaman
+ * [jira 1381] Memory leak in GrammarResolver - patch by Christian Will.
+ *
* Revision 1.30 2004/12/03 17:00:13 amassari
* Avoid throwing an exception when orphaning a cached grammar that has not been used yet
*
@@ -431,8 +434,7 @@
void GrammarResolver::cacheGrammarFromParse(const bool aValue)
{
reset();
- fCacheGrammar = aValue;
- fGrammarBucket->setAdoptElements(!fCacheGrammar);
+ fCacheGrammar = aValue;
}
Grammar* GrammarResolver::orphanGrammar(const XMLCh* const nameSpaceKey)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org