summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CommunicatorI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/CommunicatorI.cpp')
-rw-r--r--cpp/src/Ice/CommunicatorI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/CommunicatorI.cpp b/cpp/src/Ice/CommunicatorI.cpp
index 2d4b7794441..63f4340514c 100644
--- a/cpp/src/Ice/CommunicatorI.cpp
+++ b/cpp/src/Ice/CommunicatorI.cpp
@@ -272,6 +272,13 @@ Ice::CommunicatorI::CommunicatorI(int& argc, char* argv[], const PropertiesPtr&
try
{
_instance = new Instance(this, argc, argv, properties);
+
+ //
+ // Keep a reference to the dynamic library list to ensure
+ // the libraries are not unloaded until this Communicator's
+ // destructor is invoked.
+ //
+ _dynamicLibraryList = _instance->dynamicLibraryList();
}
catch(...)
{