if (mMaster)
if (!mMaster)
DConnectStub::~DConnectStub(){  // destroying stub, notify peer that we have released our reference  nsresult rv;  DConnectRelease msg;  msg.opcode_major = DCON_OP_RELEASE;  msg.opcode_minor = 0;  msg.instance = mInstance;  // fire off asynchronously... we don't expect any response to this message.  rv = IPC_SendMessage(mPeerID, kDConnectTargetID,                       (const PRUint8 *) &msg, sizeof(msg));  if (NS_FAILED(rv))    NS_WARNING("failed to send RELEASE event");  if (mMaster)  {    mMaster->mChildren.RemoveElement(this);    NS_RELEASE(mMaster);  }}