summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unocrsrhelper.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-17 22:31:08 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-20 16:40:12 +0200
commit8deeb0d53850e7fef0b3011a0335837e6316ce0e (patch)
tree909f385d4d5823ad360bb335a37a1d38bc049908 /sw/source/core/unocore/unocrsrhelper.cxx
parent624198efe4e1d2183effa95df59a3cafaba61b30 (diff)
fdo#72695: avoid double-free race condition for SwXTextField
Change-Id: I6adfcb1bdd5e8e1525568a4bcd93a8e0e97359be
Diffstat (limited to 'sw/source/core/unocore/unocrsrhelper.cxx')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index cc5a0333860d..51dcd9ba39d3 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -522,8 +522,8 @@ bool getCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry
if( pAny )
{
uno::Reference<text::XTextField> const xField(
- SwXTextField::CreateXTextField(*rPam.GetDoc(),
- pTxtAttr->GetFmtFld()));
+ SwXTextField::CreateXTextField(rPam.GetDoc(),
+ &pTxtAttr->GetFmtFld()));
*pAny <<= xField;
}
}