[Libreoffice-commits] .: sw/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Nov 3 11:15:49 PDT 2010
sw/source/filter/ww8/rtfimportfilter.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 120483df68ae590d7979555a4f3bb3b9405a1916
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Wed Nov 3 19:13:34 2010 +0100
RTF: Delete leaky pStream after import
Fixes #fdo31362. Not deleting pStream resulted not removing the lock
file either.
diff --git a/sw/source/filter/ww8/rtfimportfilter.cxx b/sw/source/filter/ww8/rtfimportfilter.cxx
index 0e8b2a2..52b4ae8 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;
}
More information about the Libreoffice-commits
mailing list