[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Mon Nov 8 15:42:56 PST 2010


 sw/source/filter/ww8/rtfimportfilter.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 3aeeadee5a2e3bd12eac9f7e8d123ab004eb9585
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Wed Nov 3 19:13:34 2010 +0100

    RTF: Delete leaky pStream after import (fdo#31362)
    
    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