summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2010-11-03 19:13:34 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2010-11-03 19:14:48 +0100
commit120483df68ae590d7979555a4f3bb3b9405a1916 (patch)
tree3df374899ce70c375a372a8efe199c8c3c3032c9
parent8137918224bbbc53b66ddf0babd0c53dfd3a3639 (diff)
RTF: Delete leaky pStream after import
Fixes #fdo31362. Not deleting pStream resulted not removing the lock file either.
-rw-r--r--sw/source/filter/ww8/rtfimportfilter.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfimportfilter.cxx b/sw/source/filter/ww8/rtfimportfilter.cxx
index 0e8b2a2023..52b4ae8457 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;
}