Kaydet (Commit) 8904bf48 authored tarafından Michael Stahl's avatar Michael Stahl

sd: dispose SdStyleSheet properly

If it's disposed during document destruction it still retained pointers
to SfxItemSet and SfxStyleSheetBasePool.

Change-Id: I7b986b4fe5ca466f0fa86a99b744f5e2f85e08be
üst 1302fbe6
......@@ -773,6 +773,13 @@ void SAL_CALL SdStyleSheet::dispose( ) throw (RuntimeException, std::exception)
void SdStyleSheet::disposing()
{
SolarMutexGuard aGuard;
if (bMySet)
{
delete pSet;
}
pSet = nullptr;
pPool = nullptr;
mxPool.clear();
}
......
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