From 2be24947c14d75e3dc9b5eb6aa4445bf49d30163 Mon Sep 17 00:00:00 2001 From: Joachim Lingner Date: Thu, 7 Jun 2001 09:58:46 +0000 Subject: [PATCH] #67468# loaded libraries are registered for unloading now --- cppuhelper/source/shlib.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index 21aa34b4b70c..a4fe36e1abd8 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shlib.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: jbu $ $Date: 2001-05-25 07:52:04 $ + * last change: $Author: jl $ $Date: 2001-06-07 10:58:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,7 +68,7 @@ #include #include #include - +#include #include #include @@ -331,6 +331,7 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory( throw CannotActivateFactoryException( aExcMsg, Reference< XInterface >() ); } + Reference< XInterface > xRet; void * pSym; @@ -499,7 +500,7 @@ Reference< XInterface > SAL_CALL loadSharedLibComponentFactory( #endif throw CannotActivateFactoryException( aExcMsg, Reference< XInterface >() ); } - + rtl_registerModuleForUnloading( lib); return xRet; } @@ -676,6 +677,8 @@ void SAL_CALL writeSharedLibComponentInfo( #endif throw CannotRegisterImplementationException( aExcMsg, Reference< XInterface >() ); } + + ::osl_unloadModule( lib); } }