diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-19 20:41:13 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-09-21 23:54:53 +0200 |
commit | 46fa042b94a0364c09482e8a09f8874119db231c (patch) | |
tree | 77372a5d5612cdc4d729f6c39684b6e2a18f3152 | |
parent | 9d98df77ec7b62e8847f5bad8c98983493018a4f (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>
-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 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); } } |