Kaydet (Commit) 98831752 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Fixed memory leak. The edit source gets cloned in SvxUnoText.

üst 285a5666
......@@ -297,8 +297,8 @@ void ScHeaderFooterTextObj::CreateUnoText_Impl()
if ( !pUnoText )
{
// can't be aggregated because getString/setString is handled here
pUnoText = new SvxUnoText(
new ScHeaderFooterEditSource(aTextData), lcl_GetHdFtPropertySet(), uno::Reference<text::XText>());
ScHeaderFooterEditSource aEditSrc(aTextData);
pUnoText = new SvxUnoText(&aEditSrc, lcl_GetHdFtPropertySet(), uno::Reference<text::XText>());
pUnoText->acquire();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment