summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;