[Libreoffice-commits] core.git: svx/source
Julien Nabet
serval2412 at yahoo.fr
Thu Sep 21 21:55:22 UTC 2017
svx/source/tbxctrls/tbcontrl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 46fa042b94a0364c09482e8a09f8874119db231c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Sep 19 20:41:13 2017 +0200
tdf#111894: fix leak memory with PaletteManager (take 2)
Thanks to Maxim Monastirsky for the suggestion!
Change-Id: I6ab799848f80f785fd24905c0a540885c41afb86
Reviewed-on: https://gerrit.libreoffice.org/42494
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 98e5f602fbb4..ad4fd0ea3b24 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -3228,7 +3228,7 @@ void SvxColorListBox::EnsurePaletteManager()
if (!m_xPaletteManager)
{
m_xPaletteManager.reset(new PaletteManager);
- m_xPaletteManager->SetColorSelectFunction(m_aColorWrapper);
+ m_xPaletteManager->SetColorSelectFunction(std::ref(m_aColorWrapper));
m_xPaletteManager->SetLastColor(m_aSelectedColor.first);
}
}
More information about the Libreoffice-commits
mailing list