summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-09-19 20:41:13 +0200
committerDavid Tardon <dtardon@redhat.com>2017-11-23 08:44:46 +0100
commit439a6e7c7e32089810b878dca77fa64ee454a596 (patch)
tree0c7458a1588ab59b1cb73a945c8aa8504d0d1765
parentf2eb40825cf66a0e01bb94171d7b0cbe86daa3f2 (diff)
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@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 46fa042b94a0364c09482e8a09f8874119db231c) Reviewed-on: https://gerrit.libreoffice.org/42610 Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}
}