Kaydet (Commit) 2c16af58 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Destroy item sets in SdDialogsTest::tearDown

...as they apparently hold raw pointers to objects destroyed early, so only
destroying the item sets in the SdDialogsTest dtor caused use-after-free crashes
during shutdown.

Change-Id: Ibe3848c81a56fb0db4bf1fca0eab35836aab6a66
üst a0ed1c9a
...@@ -142,6 +142,9 @@ void SdDialogsTest::setUp() ...@@ -142,6 +142,9 @@ void SdDialogsTest::setUp()
void SdDialogsTest::tearDown() void SdDialogsTest::tearDown()
{ {
mpSfxItemSetFromSdrObject.reset();
mpEmptySfxItemSet.reset();
mpEmptyFillStyleSfxItemSet.reset();
mxComponent->dispose(); mxComponent->dispose();
ScreenshotTest::tearDown(); ScreenshotTest::tearDown();
} }
......
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