diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-25 14:45:39 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:58:04 -0400 |
commit | 98831752bab7827f1d4d6d121daa1d0a0de805ee (patch) | |
tree | 3abd69da3f0545fc1648b4816aa219d9d37f71f6 | |
parent | 285a5666a1663d765f98ebbfc56c693f99dea323 (diff) |
Fixed memory leak. The edit source gets cloned in SvxUnoText.
-rw-r--r-- | sc/source/ui/unoobj/textuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index 54d63f69e0b1..53de44fc0acf 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -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(); } } |