diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-15 16:03:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-15 16:05:29 +0200 |
commit | d89012691b53def37118b0d892b50476d4e987b7 (patch) | |
tree | 32506b2c19565bc9d916dfea4abb2b8080a0a5c8 /svx/source/gengal/gengal.cxx | |
parent | 8a9448aabcee0171b0dc3b0401600de09455fb10 (diff) |
Do not dispose component context too early (DeInitVCL might still need it)
Change-Id: Ibae79a962ef9d2ea6cf72b70df62c6fa170e05e9
Diffstat (limited to 'svx/source/gengal/gengal.cxx')
-rw-r--r-- | svx/source/gengal/gengal.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index 83f223f95b68..6b0ffac7ca5b 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -50,6 +50,7 @@ public: protected: uno::Reference<lang::XMultiServiceFactory> xMSF; void Init(); + void DeInit(); }; Gallery* createGallery( const OUString& rURL ) @@ -240,14 +241,15 @@ int GalApp::Main() createTheme( aName, aPath, aDestDir, aFiles, mbRelativeURLs ); - // Without this we get extraordinary crashes from the - // drawinglayer VirtualDevice cache when importing svg + return EXIT_SUCCESS; +} + +void GalApp::DeInit() +{ uno::Reference< lang::XComponent >( comphelper::getProcessComponentContext(), uno::UNO_QUERY_THROW )-> dispose(); ::comphelper::setProcessServiceFactory( NULL ); - - return EXIT_SUCCESS; } void vclmain::createApplication() |