svx/source/tbxctrls/tbcontrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 55b5a1ce04e75b16e2ae886f8ef2038c3da939d8
Author: Dennis Francis <dennisfrancis...@gmail.com>
Date:   Wed Sep 2 22:23:50 2015 +0530

    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 <momonas...@gmail.com>
    Tested-by: Maxim Monastirsky <momonas...@gmail.com>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index d9f4f13..129dcd6 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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to