Kaydet (Commit) 6e355d95 authored tarafından Michael Stahl's avatar Michael Stahl

Revert "at least fix the crash when calling SdXImpressDocument::dispose

... for now"

This reverts commit 599473a13e3c5ba669d995c913ad415bd674a16c.

moggi says the unspecified crash happened with the tests following the
comment in chart2import.cxx:75, but the tests run fine in valgrind now.

The commit creates a memory leak in the CppunitTests as
SfxBaseModel::dispose() returns early, because mbDisposed is set.

Change-Id: I987dce6a4090784d166a4a3b2e7f9e2c0cddd289
üst 382bab94
...@@ -71,12 +71,6 @@ public: ...@@ -71,12 +71,6 @@ public:
CPPUNIT_TEST(testODTChartSeries); CPPUNIT_TEST(testODTChartSeries);
CPPUNIT_TEST(testDOCChartSeries); CPPUNIT_TEST(testDOCChartSeries);
CPPUNIT_TEST(testDOCXChartSeries); CPPUNIT_TEST(testDOCXChartSeries);
/*
* Disabling Impress Uts.
* ChartTest::tearDown() calls dispose of mxComponent
* this causes the UT to crash in sd.
* sd::DrawView::Notify tries to reset by calling sd::DrawViewShell::ResetActualPage
*/
CPPUNIT_TEST(testPPTChartSeries); CPPUNIT_TEST(testPPTChartSeries);
CPPUNIT_TEST(testPPTXChartSeries); CPPUNIT_TEST(testPPTXChartSeries);
CPPUNIT_TEST(testPPTXHiddenDataSeries); CPPUNIT_TEST(testPPTXHiddenDataSeries);
......
...@@ -2399,8 +2399,8 @@ void SAL_CALL SdXImpressDocument::dispose() throw (::com::sun::star::uno::Runtim ...@@ -2399,8 +2399,8 @@ void SAL_CALL SdXImpressDocument::dispose() throw (::com::sun::star::uno::Runtim
// that dispose() is called again. It is important to forward this // that dispose() is called again. It is important to forward this
// second dispose() to the base class, too. // second dispose() to the base class, too.
// As a consequence the following code has to be able to be run twice. // As a consequence the following code has to be able to be run twice.
mbDisposed = true;
SfxBaseModel::dispose(); SfxBaseModel::dispose();
mbDisposed = true;
uno::Reference< container::XNameAccess > xStyles(mxStyleFamilies); uno::Reference< container::XNameAccess > xStyles(mxStyleFamilies);
if( xStyles.is() ) if( xStyles.is() )
......
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