summaryrefslogtreecommitdiff
path: root/TAO/tests/CodeSets
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/CodeSets')
-rw-r--r--TAO/tests/CodeSets/simple/server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/TAO/tests/CodeSets/simple/server.cpp b/TAO/tests/CodeSets/simple/server.cpp
index e4861f12313..538f5ac20bd 100644
--- a/TAO/tests/CodeSets/simple/server.cpp
+++ b/TAO/tests/CodeSets/simple/server.cpp
@@ -142,6 +142,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_NEW_RETURN (my_impl,
SimpleImpl (orb.in ()),
-1);
+ PortableServer::ServantBase_var safe (my_impl);
// Create CORBA object for servant and REGISTER with POA
PortableServer::ObjectId_var id =