diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterController.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index e1ddf110c895..7d4ac91b710e 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -204,12 +204,6 @@ void PresenterController::disposing() if (mxConfigurationController.is()) mxConfigurationController->removeConfigurationChangeListener(this); - Reference<XComponent> xWindowManagerComponent ( - static_cast<XWeak*>(mpWindowManager.get()), UNO_QUERY); - mpWindowManager = nullptr; - if (xWindowManagerComponent.is()) - xWindowManagerComponent->dispose(); - if (mxController.is()) { Reference<frame::XFrame> xFrame (mxController->getFrame()); @@ -218,6 +212,12 @@ void PresenterController::disposing() mxController = nullptr; } + Reference<XComponent> xWindowManagerComponent ( + static_cast<XWeak*>(mpWindowManager.get()), UNO_QUERY); + mpWindowManager = nullptr; + if (xWindowManagerComponent.is()) + xWindowManagerComponent->dispose(); + mxComponentContext = nullptr; mxConfigurationController = nullptr; mxSlideShowController = nullptr; |