diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-17 22:50:01 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-20 16:40:13 +0200 |
commit | 939edde802b4de9abb5c9d23c61abb37916ce357 (patch) | |
tree | 350e6dd4fc28d695f37745ff7195cd8b4ec2bc76 /sw/source/core/unocore/unoportenum.cxx | |
parent | c71c1b2bb3b0a1767cd062e46e7dd81cc1027fb1 (diff) |
fdo#72695: avoid double-free race condition for SwXDocumentIndexMark
Change-Id: I08fef7f1de4cce468a4936e33d3684f847e1aa5b
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index d79d3e3e7307..9eabdcf50699 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -538,7 +538,7 @@ lcl_CreateTOXMarkPortion( const Reference<XTextContent> xContent( SwXDocumentIndexMark::CreateXDocumentIndexMark(*pDoc, - *const_cast<SwTOXType*>(rTOXMark.GetTOXType()), rTOXMark), + const_cast<SwTOXType*>(rTOXMark.GetTOXType()), & rTOXMark), uno::UNO_QUERY); SwXTextPortion* pPortion = 0; |