Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi there,

Andor kindly fixed $subject (that got independently fixed on master)
- could someone please review, sign-off & push to -3-4?

Thanks,

-- Thorsten
From bbd13ce30ac4f7e8065d58e830206adfe079bbd5 Mon Sep 17 00:00:00 2001
From: Andor Ertsey <andor.ertsey@muenchen.de>
Date: Sun, 4 Sep 2011 11:43:45 +0200
Subject: [PATCH] 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.
---
 sw/source/ui/app/swmodul1.cxx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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 )
-- 
1.7.3.4

Attachment: pgpwGBxvg397f.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.