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-09 00:40:22 +0100
commit3aeeadee5a2e3bd12eac9f7e8d123ab004eb9585 (patch)
tree1742492ea065ed6c8e613bde0a8614b28a22f6f8
parent394aa30e6b6490203095cf7ecdac0f565a1b57f9 (diff)
RTF: Delete leaky pStream after import (fdo#31362)
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;
}