diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-21 19:21:31 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-21 19:21:31 +0000 |
commit | bc20ce971235dfa09ed849d92bb51d5928a8be66 (patch) | |
tree | 0e1cc2bb3316f4bedfc377ed68c89dc8f3d9afec /TAO/tao/CurrentC.cpp | |
parent | 8f101f03a5f72294c838c3388638a61a789d0c47 (diff) | |
download | ATCD-bc20ce971235dfa09ed849d92bb51d5928a8be66.tar.gz |
ChangeLogTag:Tue Jul 21 14:19:28 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/CurrentC.cpp')
-rw-r--r-- | TAO/tao/CurrentC.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/tao/CurrentC.cpp b/TAO/tao/CurrentC.cpp index 0860b6a260b..2105885d690 100644 --- a/TAO/tao/CurrentC.cpp +++ b/TAO/tao/CurrentC.cpp @@ -35,7 +35,9 @@ CORBA_Current_ptr CORBA_Current::_narrow ( || obj->_servant()->_downcast ("IDL:CORBA/Current:1.0") == 0 ) { - CORBA_Current_ptr new_obj = new CORBA_Current(obj->_stubobj ()); + STUB_Object *stub = obj->_stubobj (); + stub->_incr_refcnt (); + CORBA_Current_ptr new_obj = new CORBA_Current(stub); return new_obj; } // end of if STUB_Object *stub = obj->_servant ()->_create_stub (env); |