diff options
author | Mark Wielaard <mark@klomp.org> | 2013-05-24 08:55:45 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-24 19:25:57 +0000 |
commit | a602bd1a69db5c6b4e0fa818324cdf4e0088778c (patch) | |
tree | 545c7fa385c83ac9adb947677bc0a0b453aacb3e /sd | |
parent | fd6da32cb1cba42be795f01574a86700677ec78a (diff) |
Fix memory leak in DrawViewShell::GetAttrState().
DrawViewShell::GetAttrState() might create a temporary new SvxNumRule
object. Make sure it gets deleted when done.
Change-Id: I33ddd9df983193fe87dd076267043d202cdfc3d5
Reviewed-on: https://gerrit.libreoffice.org/4020
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviewsf.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx index 4989cd2a5a07..89c90d0b4908 100644 --- a/sd/source/ui/view/drviewsf.cxx +++ b/sd/source/ui/view/drviewsf.cxx @@ -630,9 +630,10 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) } } } + delete pNumRule; } } - break; + break; //End // Added by Li Hui for story 179. case FN_NUM_BULLET_ON: |