summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoport.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-26 15:08:59 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-26 15:21:54 +0200
commit1925a57dee73933ffbdb3b57349b757470a8218a (patch)
tree07d5b1c8a1d67bd36b0143f0ebddb0eca126b629 /sw/source/core/unocore/unoport.cxx
parent0f98a035806aed03ba56e292bc7ee17b242ff2a0 (diff)
Remove SwClients before destruction in some uno wrapper classes
- SwXTextTableCursor, SwXCellRange, SwXTextPortion, SwNavigationMgr, SwXParaFrameEnumeration - this was overlooked due to confusion over our bazillion different debug modes Change-Id: I0965184b3ffc4854c26838ff78aef06f4544a9b1
Diffstat (limited to 'sw/source/core/unocore/unoport.cxx')
-rw-r--r--sw/source/core/unocore/unoport.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index 3ffb5cddaeb6..ad81d7ecefd2 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -137,7 +137,11 @@ SwXTextPortion::SwXTextPortion(
}
}
-SwXTextPortion::~SwXTextPortion() {};
+SwXTextPortion::~SwXTextPortion()
+{
+ if(m_pUnoCursor)
+ m_pUnoCursor->Remove(this);
+};
uno::Reference< text::XText > SwXTextPortion::getText()
throw( uno::RuntimeException, std::exception )