bug 1235965 - null check mDoc in AccessibleWrap::Shutdown() r=davidb

This commit is contained in:
Trevor Saunders 2016-01-06 15:08:39 -05:00
parent 7fad434095
commit b4b5b08e9b

View File

@ -91,8 +91,13 @@ void
AccessibleWrap::Shutdown()
{
#ifdef _WIN64
if (mID != kNoID)
static_cast<DocAccessibleWrap*>(mDoc)->RemoveID(mID);
if (mID != kNoID) {
auto doc = static_cast<DocAccessibleWrap*>(mDoc);
MOZ_ASSERT(doc);
if (doc) {
doc->RemoveID(mID);
}
}
#endif
Accessible::Shutdown();