mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1235965 - null check mDoc in AccessibleWrap::Shutdown() r=davidb
This commit is contained in:
parent
7fad434095
commit
b4b5b08e9b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user