From 2a7739aa271d18f8ceb3731ff26d926174cdabc0 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 17 May 2011 15:05:08 +0200 Subject: do not leak memory --- tools/bootstrp/addexes2/mkfilt.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tools/bootstrp') diff --git a/tools/bootstrp/addexes2/mkfilt.cxx b/tools/bootstrp/addexes2/mkfilt.cxx index 00e744bbf314..98a0790d423f 100644 --- a/tools/bootstrp/addexes2/mkfilt.cxx +++ b/tools/bootstrp/addexes2/mkfilt.cxx @@ -162,8 +162,7 @@ void MkFilter::Filter() { fprintf( stderr, "." ); MkLine *pMkLine = new MkLine(); - ByteString *pStr = new ByteString( aLineBuf ); - pMkLine->aLine = *pStr; + pMkLine->aLine = aLineBuf; pMkLine->bOut = sal_False; pLst->push_back( pMkLine ); @@ -178,8 +177,7 @@ void MkFilter::Filter() fprintf( stderr, ";\nunroll end\n" ); MkLine *p_MkLine = new MkLine(); p_MkLine->bHier = sal_True; - ByteString *pByteString = new ByteString("# do not delete this line === mkfilter3i\n"); - p_MkLine->aLine = *pByteString; + p_MkLine->aLine = ByteString("# do not delete this line === mkfilter3i\n"); p_MkLine->bOut = sal_False; p_MkLine->pPrivateTnrLst = pTnrLst; pTnrLst = new ByteStringList(); @@ -187,8 +185,7 @@ void MkFilter::Filter() nState = 0; bInTnrList = sal_False; } - ByteString *pStr = new ByteString( aLineBuf ); - pMkLine->aLine = *pStr; + pMkLine->aLine = ByteString( aLineBuf ); pMkLine->bOut = sal_False; if ( bInTnrList ) -- cgit