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() ...@@ -297,8 +297,8 @@ void ScHeaderFooterTextObj::CreateUnoText_Impl()
if ( !pUnoText ) if ( !pUnoText )
{ {
// can't be aggregated because getString/setString is handled here // can't be aggregated because getString/setString is handled here
pUnoText = new SvxUnoText( ScHeaderFooterEditSource aEditSrc(aTextData);
new ScHeaderFooterEditSource(aTextData), lcl_GetHdFtPropertySet(), uno::Reference<text::XText>()); pUnoText = new SvxUnoText(&aEditSrc, lcl_GetHdFtPropertySet(), uno::Reference<text::XText>());
pUnoText->acquire(); 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