summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-09 11:30:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-09 11:32:28 +0200
commite5981249db34db2367bae2a2f3e7e8d9f8bd09a0 (patch)
tree0e8b1bd15802f2b57519a9ef41b929746e79f446 /starmath
parentc3c3e5b0554ca3f49649c96cf0b0b1b770713532 (diff)
loplugin:refcounting
Change-Id: Ic2ab440e011502a1df3cd658fd8a86acc5d5c31c
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 2690824939bd..6e526e4e1163 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -2070,10 +2070,10 @@ SvXMLImportContext *SmXMLDocContext_Impl::CreateChildContext(
/*Basically theres an implicit mrow around certain bare
*elements, use a RowContext to see if this is one of
*those ones*/
- SmXMLRowContext_Impl aTempContext(GetSmImport(),nPrefix,
- GetXMLToken(XML_MROW));
+ rtl::Reference<SmXMLRowContext_Impl> aTempContext(new SmXMLRowContext_Impl(GetSmImport(),nPrefix,
+ GetXMLToken(XML_MROW)));
- pContext = aTempContext.StrictCreateChildContext(nPrefix,
+ pContext = aTempContext->StrictCreateChildContext(nPrefix,
rLocalName, xAttrList);
break;
}