From df5be194098e188f9cd3234af2bea34b67d19da2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 7 Oct 2006 01:05:12 +0000 Subject: Instantiate and hook up the plugin providers in the main() function of the corresponding backends (porters may have to update their ports if they were using the POSIX or Win32 module loading code implicitly); some cleanup svn-id: r24153 --- backends/plugins/dc/dc-provider.cpp | 1 + backends/plugins/posix/posix-provider.cpp | 1 + backends/plugins/win32/win32-provider.cpp | 1 + 3 files changed, 3 insertions(+) (limited to 'backends/plugins') diff --git a/backends/plugins/dc/dc-provider.cpp b/backends/plugins/dc/dc-provider.cpp index bf7a607d99..46e4b84674 100644 --- a/backends/plugins/dc/dc-provider.cpp +++ b/backends/plugins/dc/dc-provider.cpp @@ -77,6 +77,7 @@ public: if (_dlHandle) { if (dlclose(_dlHandle) != 0) warning("Failed unloading plugin '%s' (%s)", _filename.c_str(), dlerror()); + _dlHandle = 0; } } }; diff --git a/backends/plugins/posix/posix-provider.cpp b/backends/plugins/posix/posix-provider.cpp index 52bc7751b1..395968918b 100644 --- a/backends/plugins/posix/posix-provider.cpp +++ b/backends/plugins/posix/posix-provider.cpp @@ -70,6 +70,7 @@ public: if (_dlHandle) { if (dlclose(_dlHandle) != 0) warning("Failed unloading plugin '%s' (%s)", _filename.c_str(), dlerror()); + _dlHandle = 0; } } }; diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp index 5eb607dc71..b88f900027 100644 --- a/backends/plugins/win32/win32-provider.cpp +++ b/backends/plugins/win32/win32-provider.cpp @@ -71,6 +71,7 @@ public: if (_dlHandle) { if (!FreeLibrary((HMODULE)_dlHandle)) warning("Failed unloading plugin '%s'", _filename.c_str()); + _dlHandle = 0; } } }; -- cgit v1.2.3