diff options
author | Andor Ertsey <andor.ertsey@muenchen.de> | 2011-09-04 11:43:45 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-07 12:52:37 +0100 |
commit | c3fd04cda937b9896b5abe6f32a1de459317e8a5 (patch) | |
tree | ac91f99eb2703a9e4129918fa3c31269f4bf5e7e | |
parent | ab04c2969ab134ed5131f5777b05d8e5fe9a4d18 (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.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 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 ) |