[xiph-commits] r9539 -
trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET
davidb at svn.xiph.org
davidb at svn.xiph.org
Wed Jun 29 15:57:50 PDT 2005
Author: davidb
Date: 2005-06-29 15:57:49 -0700 (Wed, 29 Jun 2005)
New Revision: 9539
Modified:
trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp
Log:
make sure the Parser object is constructor before use, and destructed after use.
Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp 2005-06-29 22:48:31 UTC (rev 9538)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp 2005-06-29 22:57:49 UTC (rev 9539)
@@ -7,10 +7,13 @@
namespace libCMMLParserDotNET {
CMML_Parser::CMML_Parser(void)
{
+ mCMMLParser = new CMMLParser();
}
CMML_Parser::~CMML_Parser(void)
{
+ delete mCMMLParser;
+ mCMMLParser = NULL;
}
bool CMML_Parser::parseDocFromFile(String* inFileName, CMMLDoc* outCMMLDoc)
@@ -19,8 +22,6 @@
wstring locFileName = locWS;
bool retVal = mCMMLParser->parseDocFromFile(locFileName, outCMMLDoc->getMe());
-
- mCMMLParser = new CMMLParser();
Wrappers::releaseWStr(locWS);
@@ -28,5 +29,4 @@
}
} //End libCMMLParserDotNNET
-} //End illiminable
-
+} //End illiminable
\ No newline at end of file
More information about the commits
mailing list