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 <[email protected]>
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: pgpEnOikEyExD.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to