if (mGlobalObject) { mGlobalObject->SetContext(nsnull); mGlobalObject->SetGlobalObjectOwner(nsnull); } delete mBindingTable;
nsXBLDocumentInfo::~nsXBLDocumentInfo(){  /* destructor code */  if (mGlobalObject) {    mGlobalObject->SetContext(nsnull); // remove circular reference    mGlobalObject->SetGlobalObjectOwner(nsnull); // just in case  }  delete mBindingTable;}