summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndor Ertsey <andor.ertsey@muenchen.de>2011-09-04 11:43:45 +0200
committerCaolán McNamara <caolanm@redhat.com>2011-09-07 12:52:37 +0100
commitc3fd04cda937b9896b5abe6f32a1de459317e8a5 (patch)
treeac91f99eb2703a9e4129918fa3c31269f4bf5e7e
parentab04c2969ab134ed5131f5777b05d8e5fe9a4d18 (diff)
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@redhat.com>
-rw-r--r--sw/source/ui/app/swmodul1.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index 1429bc1670..82db1afdd2 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 )