summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/callback/Server.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2008-05-08 15:06:13 +1000
committerMichi Henning <michi@zeroc.com>2008-05-08 15:06:13 +1000
commitd74d3d2b2f443a46825292475227be42279d4476 (patch)
tree2eda600511121b9f4fd70396ffd2ff3b6b9ad507 /cpp/demo/Ice/callback/Server.cpp
parentFixed bug 3102 (diff)
downloadice-d74d3d2b2f443a46825292475227be42279d4476.tar.bz2
ice-d74d3d2b2f443a46825292475227be42279d4476.tar.xz
ice-d74d3d2b2f443a46825292475227be42279d4476.zip
Bug 3097 - Smart pointer formal parameter not exception safe
Diffstat (limited to 'cpp/demo/Ice/callback/Server.cpp')
-rw-r--r--cpp/demo/Ice/callback/Server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/Ice/callback/Server.cpp b/cpp/demo/Ice/callback/Server.cpp
index a6863869392..e62bc907194 100644
--- a/cpp/demo/Ice/callback/Server.cpp
+++ b/cpp/demo/Ice/callback/Server.cpp
@@ -37,7 +37,8 @@ CallbackServer::run(int argc, char* argv[])
}
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Callback.Server");
- adapter->add(new CallbackSenderI, communicator()->stringToIdentity("callback"));
+ CallbackSenderPtr cbs = new CallbackSenderI;
+ adapter->add(cbs, communicator()->stringToIdentity("callback"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;