*not part of the build*

fix for 56706
This commit is contained in:
idk%eng.sun.com 2001-05-01 01:13:28 +00:00
parent 3d0fc5e90d
commit 88e2071520

View File

@ -40,7 +40,7 @@ NS_IMPL_NSGETMODULE("BlackConnectORB component",components);
NS_IMPL_ISUPPORTS(bcORBComponent,NS_GET_IID(bcORBComponent)); NS_IMPL_THREADSAFE_ISUPPORTS(bcORBComponent,NS_GET_IID(bcORBComponent));
bcORBComponent::bcORBComponent() : bcORBComponent::bcORBComponent() :
orb(0) orb(0)
@ -50,17 +50,17 @@ bcORBComponent::bcORBComponent() :
bcORBComponent::~bcORBComponent() { bcORBComponent::~bcORBComponent() {
if (orb) { if (orb) {
delete orb; //nb should we destroy it? delete orb; //nb should we destroy it?
} }
} }
NS_IMETHODIMP bcORBComponent::GetORB(bcIORB **_orb) { NS_IMETHODIMP bcORBComponent::GetORB(bcIORB **_orb) {
if (!_orb) { if (!_orb) {
printf("--bcORBComponent::GetORB\n"); printf("--bcORBComponent::GetORB\n");
return NS_ERROR_NULL_POINTER; return NS_ERROR_NULL_POINTER;
} }
if (!orb) { if (!orb) {
orb = new ORB(); orb = new ORB();
} }
*_orb = orb; *_orb = orb;
return NS_OK; return NS_OK;