corba 生成的函数 里面有new一块内存,但是不知道什么时候会释放?或是没有释放
POA_PFIS::Server::DataRequestService::_this (void)
{
TAO_Stub *stub = this->_create_stub ();
TAO_Stub_Auto_Ptr safe_stub (stub);
::CORBA::Object_ptr tmp = CORBA::Object_ptr ();
::CORBA::Boolean const _tao_opt_colloc =
stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ();
ACE_NEW_RETURN (
tmp,
::CORBA::Object (stub, _tao_opt_colloc, this), //这里每次调用会new一块内存?什么时候释放{:3_55:}
0
);
::CORBA::Object_var obj = tmp;
(void) safe_stub.release ();
typedef ::PFIS::Server::DataRequestService STUB_SCOPED_NAME;
return
TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow (
obj.in (),
PFIS_Server__TAO_DataRequestService_Proxy_Broker_Factory_function_pointer
);
} |