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

Caolán McNamara caolan at kemper.freedesktop.org
Wed Sep 7 04:52:46 PDT 2011


 sw/source/ui/app/swmodul1.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c3fd04cda937b9896b5abe6f32a1de459317e8a5
Author: Andor Ertsey <andor.ertsey at muenchen.de>
Date:   Sun Sep 4 11:43:45 2011 +0200

    Fix leak in pdf export.
    
    This fixes i#116448 - SwViewOption was allocated but never freed
    during pdf export - killed mass document exporting via OOM
    eventually.
    
    Signed-off-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index 1429bc1..82db1af 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -220,6 +220,8 @@ void SwModule::ApplyUsrPref(const SwViewOption &rUsrPref, SwView* pActView,
 
     // in the end the Idle-Flag is set again
     pPref->SetIdle(sal_True);
+
+    delete pViewOpt;
 }
 
 void SwModule::ApplyUserMetric( FieldUnit eMetric, sal_Bool bWeb )


More information about the Libreoffice-commits mailing list