diff options
author | Dennis Francis <dennisfrancis.in@gmail.com> | 2015-09-02 22:23:50 +0530 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-09-04 14:36:58 +0000 |
commit | 55b5a1ce04e75b16e2ae886f8ef2038c3da939d8 (patch) | |
tree | 3e0fbbc39aee041b0aa0027619720b1bbc23bc95 /svx/source/tbxctrls/tbcontrl.cxx | |
parent | da26fa240994377eec0a1b1cdb777ef49b36826f (diff) |
Fixes memleak by allowing SvxFontNameBox_Impl dtor to be called
Discussion of this memleak is at http://lists.freedesktop.org/archives/libreoffice/2015-August/069883.html
Change-Id: Ie426d7664c4f6901a1877741cdced5b65c51be3f
Reviewed-on: https://gerrit.libreoffice.org/18073
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index d9f4f133b524..129dcd6ed2ae 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -861,7 +861,7 @@ static bool lcl_GetDocFontList( const FontList** ppFontList, SvxFontNameBox_Impl static_cast<const SvxFontListItem*>(pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST )); else { - ::std::unique_ptr<FontList> aFontList(new FontList( pBox )); + ::std::unique_ptr<FontList> aFontList(new FontList( pBox->GetParent() )); *ppFontList = aFontList.get(); pBox->SetOwnFontList(std::move(aFontList)); bChanged = true; |