Kaydet (Commit) 8c0cc5cd authored tarafından Julien Nabet's avatar Julien Nabet

Related tdf#105500: leaks in PaletteManager and SvxColorToolBoxControl

See comments of the bugtracker for more details
Again thank you Alex for very useful information about leaks!

Change-Id: I96743e8b167224f1bec73db5f2ba82536c7f23fa
Reviewed-on: https://gerrit.libreoffice.org/41265Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 64a3124d
...@@ -62,6 +62,7 @@ PaletteManager::PaletteManager() : ...@@ -62,6 +62,7 @@ PaletteManager::PaletteManager() :
PaletteManager::~PaletteManager() PaletteManager::~PaletteManager()
{ {
m_Palettes.clear();
} }
void PaletteManager::LoadPalettes() void PaletteManager::LoadPalettes()
......
...@@ -2807,6 +2807,7 @@ void SvxColorToolBoxControl::EnsurePaletteManager() ...@@ -2807,6 +2807,7 @@ void SvxColorToolBoxControl::EnsurePaletteManager()
SvxColorToolBoxControl::~SvxColorToolBoxControl() SvxColorToolBoxControl::~SvxColorToolBoxControl()
{ {
m_xPaletteManager.reset(nullptr);
} }
void SvxColorToolBoxControl::setColorSelectFunction(const ColorSelectFunction& aColorSelectFunction) void SvxColorToolBoxControl::setColorSelectFunction(const ColorSelectFunction& aColorSelectFunction)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment