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 2003/06/23 17:53:50 UTC
cvs commit: xml-xerces/c/src/xercesc/validators/common GrammarResolver.cpp
peiyongz 2003/06/23 08:53:50
Modified: c/src/xercesc/validators/common GrammarResolver.cpp
Log:
clean up temporary XMLGrammarDescription to make MemoryTest happy
Revision Changes Path
1.10 +5 -3 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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- GrammarResolver.cpp 20 Jun 2003 18:58:45 -0000 1.9
+++ GrammarResolver.cpp 23 Jun 2003 15:53:50 -0000 1.10
@@ -57,6 +57,9 @@
/*
* $Log$
+ * Revision 1.10 2003/06/23 15:53:50 peiyongz
+ * clean up temporary XMLGrammarDescription to make MemoryTest happy
+ *
* Revision 1.9 2003/06/20 18:58:45 peiyongz
* Stateless Grammar Pool :: Part I
*
@@ -199,8 +202,8 @@
if (!nameSpaceKey)
return 0;
- // we don't care the leakage
XMLGrammarDescription* gramDesc = getGrammarDescription(nameSpaceKey);
+ Janitor<XMLGrammarDescription> janName(gramDesc);
return getGrammar(gramDesc);
}
@@ -238,7 +241,6 @@
//Deprecated
void GrammarResolver::putGrammar( const XMLCh* const nameSpaceKey, Grammar* const grammarToAdopt )
{
- // we don't care the leakage
XMLGrammarDescription* gramDesc = getGrammarDescription(nameSpaceKey);
putGrammar(gramDesc, grammarToAdopt);
}
@@ -318,8 +320,8 @@
Grammar* GrammarResolver::orphanGrammar(const XMLCh* const nameSpaceKey)
{
- // we don't care the leakage
XMLGrammarDescription* gramDesc = getGrammarDescription(nameSpaceKey);
+ Janitor<XMLGrammarDescription> janName(gramDesc);
return orphanGrammar(gramDesc);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org