diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-17 15:05:08 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-18 06:06:36 +0200 |
commit | 2a7739aa271d18f8ceb3731ff26d926174cdabc0 (patch) | |
tree | 6aa097513e188a96c7c0c47ccd24fc359ca173dc /tools/bootstrp | |
parent | 7dac70656639a79b65bdb074eca94921baa6fffc (diff) |
do not leak memory
Diffstat (limited to 'tools/bootstrp')
-rw-r--r-- | tools/bootstrp/addexes2/mkfilt.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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 ) |