diff options
author | Michi Henning <michi@zeroc.com> | 2008-05-08 15:06:13 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2008-05-08 15:06:13 +1000 |
commit | d74d3d2b2f443a46825292475227be42279d4476 (patch) | |
tree | 2eda600511121b9f4fd70396ffd2ff3b6b9ad507 /cpp/demo/Ice/async/Server.cpp | |
parent | Fixed bug 3102 (diff) | |
download | ice-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/async/Server.cpp')
-rw-r--r-- | cpp/demo/Ice/async/Server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/Ice/async/Server.cpp b/cpp/demo/Ice/async/Server.cpp index be050037f5d..6b0a5dfad39 100644 --- a/cpp/demo/Ice/async/Server.cpp +++ b/cpp/demo/Ice/async/Server.cpp @@ -45,7 +45,8 @@ AsyncServer::run(int argc, char* argv[]) Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Hello"); _workQueue = new WorkQueue(); - adapter->add(new HelloI(_workQueue), communicator()->stringToIdentity("hello")); + Demo::HelloPtr hello = new HelloI(_workQueue); + adapter->add(hello, communicator()->stringToIdentity("hello")); _workQueue->start(); adapter->activate(); |