diff options
Diffstat (limited to 'cpp/test/Ice/servantLocator/Collocated.cpp')
-rw-r--r-- | cpp/test/Ice/servantLocator/Collocated.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/test/Ice/servantLocator/Collocated.cpp b/cpp/test/Ice/servantLocator/Collocated.cpp index 777030c17f5..27548455745 100644 --- a/cpp/test/Ice/servantLocator/Collocated.cpp +++ b/cpp/test/Ice/servantLocator/Collocated.cpp @@ -61,8 +61,10 @@ public: } else { - current.adapter->removeServantLocator(""); - current.adapter->removeServantLocator("category"); + ServantLocatorPtr locator = current.adapter->removeServantLocator(""); + locator->deactivate(""); + locator = current.adapter->removeServantLocator("category"); + locator->deactivate("category"); } } }; |