summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-10 20:17:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-10 20:18:52 +0100
commite938e65cbbe63d33c07cdd3594086136e2c6ba09 (patch)
tree3c6c4afc796c2d4f55420717911ede2e5b8a0da4 /svx
parent020e29fb95d742b160feab1df6751e59d4108239 (diff)
CID#1038282 Resource leak in sidebar
Change-Id: I959b0b975f32158bcc0377a1a92c6c9c1b9190b6
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/nbdtmg.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index 71ce3a0bbe91..e11819860731 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -1313,9 +1313,10 @@ NumberingTypeMgr::NumberingTypeMgr()
ImplLoad(OUString("standard.syb"));
}
-NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& rTypeMgr):
- NBOTypeMgrBase(rTypeMgr),
- pNumberSettingsArr (new NumberSettingsArr_Impl)
+NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& rTypeMgr)
+ : NBOTypeMgrBase(rTypeMgr)
+ , pNumberSettingsArr (new NumberSettingsArr_Impl)
+ , pDefaultNumberSettingsArr(NULL)
{
ImplLoad(OUString("standard.syb"));
}
@@ -1323,6 +1324,7 @@ NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& rTypeMgr):
NumberingTypeMgr::~NumberingTypeMgr()
{
delete pNumberSettingsArr;
+ delete pDefaultNumberSettingsArr;
}
class theNumberingTypeMgr : public rtl::Static<NumberingTypeMgr, theNumberingTypeMgr> {};