summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2013-05-24 08:55:45 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-05-24 20:34:50 +0100
commit43a57daeb458fe202b42d4c36a72f9d51f2732df (patch)
tree925e2b2e09b1620c7bb9530a548de29279425dae /sd
parent0eccb0d1618b7e00856e778ed9c2e785ef3af3ce (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> (cherry picked from commit a602bd1a69db5c6b4e0fa818324cdf4e0088778c)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviewsf.cxx3
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: