svx/source/tbxctrls/tbcontrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 439a6e7c7e32089810b878dca77fa64ee454a596 Author: Julien Nabet <serval2...@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 <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> (cherry picked from commit 46fa042b94a0364c09482e8a09f8874119db231c) Reviewed-on: https://gerrit.libreoffice.org/42610 Reviewed-by: David Tardon <dtar...@redhat.com> diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 628bacad7065..5ef9cf378206 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3230,7 +3230,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); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits