summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-03-22 14:03:23 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-03-22 14:22:15 +0100
commit3d5349f290deead4d47708ac8e30da47a76b9177 (patch)
treed3fa36e9344058405a1f761848ea39bd63cfffa7 /sw
parent0abc9bb2fa280164372b4779e6af9c3d992951b6 (diff)
missing SwExtraRedlineTbl dtor
Change-Id: I58eaedd89fa039945a3907c8f8858599ea5bbe9c
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/docary.hxx1
-rw-r--r--sw/source/core/doc/docnew.cxx2
-rw-r--r--sw/source/core/doc/docredln.cxx5
3 files changed, 7 insertions, 1 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 4c51c577d773..b9c6f956b33d 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -190,6 +190,7 @@ private:
std::vector<SwExtraRedline*> m_aExtraRedlines;
public:
+ ~SwExtraRedlineTbl();
sal_uInt16 GetPos(const SwExtraRedline* p) const;
bool Insert( SwExtraRedline* p );
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index b15be742200c..4666eb36d277 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -531,7 +531,7 @@ SwDoc::~SwDoc()
mbDtor = true;
delete mpRedlineTbl;
- delete mpExtraRedlineTbl;
+ delete mpExtraRedlineTbl, mpExtraRedlineTbl = 0;
delete mpUnoCrsrTbl;
delete mpAutoFmtRedlnComment;
delete mpUpdtFlds;
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 9af892dfc0bd..1f63587d40f9 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -217,6 +217,11 @@ const SwExtraRedlineTbl& SwDoc::GetExtraRedlineTbl() const
return *mpExtraRedlineTbl;
}
+SwExtraRedlineTbl::~SwExtraRedlineTbl()
+{
+ DeleteAndDestroyAll();
+}
+
bool SwDoc::IsRedlineMove() const
{
return mbIsRedlineMove;