dbertoni 01/06/22 12:13:23
Modified: c/samples/CompileStylesheet CompileStylesheet.cpp
Log:
Destroy stylesheet when finished.
Revision Changes Path
1.19 +5 -1 xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp
Index: CompileStylesheet.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- CompileStylesheet.cpp 2001/06/21 15:37:18 1.18
+++ CompileStylesheet.cpp 2001/06/22 19:13:21 1.19
@@ -91,11 +91,15 @@
theCompiledStylesheet,
outBuffer);
}
+
+ // I don't have to do this, since the transformer will
+ // clean this up when it's destroyed, but why not...
+ theResult =
theXalanTransformer.destroyStylesheet(theCompiledStylesheet);
}
if(theResult != 0)
{
- cerr << "CompileStylesheet Error: \n" <<
theXalanTransformer.getLastError()
+ cerr << "CompileStylesheet Error: " <<
theXalanTransformer.getLastError()
<< endl
<< endl;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]