diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2010-11-03 19:13:34 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2010-11-09 00:40:22 +0100 |
commit | d984e04694ffaff9cf3d9b9350f298e1f3aa7325 (patch) | |
tree | 75d900a1a2f0544158ae870616d588cbee3b3338 /sw | |
parent | d974d3f7f89f9cc685a5b1ced001c0f24f8ebe94 (diff) |
RTF: Delete leaky pStream after import (fdo#31362)
Not deleting pStream resulted not removing the lock file either.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfimportfilter.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfimportfilter.cxx b/sw/source/filter/ww8/rtfimportfilter.cxx index 0e8b2a202327..52b4ae845710 100644 --- a/sw/source/filter/ww8/rtfimportfilter.cxx +++ b/sw/source/filter/ww8/rtfimportfilter.cxx @@ -97,7 +97,9 @@ sal_Bool RtfImportFilter::filter( const uno::Sequence< beans::PropertyValue >& a } RtfReader aReader; - return aReader.Read(pStream, *pDoc, aURL, *pCurPam) == 0; + sal_Bool bRet = aReader.Read(pStream, *pDoc, aURL, *pCurPam) == 0; + delete pStream; + return bRet; } |