mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
Fix a crash when tearing down a document viewer if a document never started to load (bug 295085). r+sr=bzbarsky, a=chofmann.
This commit is contained in:
parent
72c6c61b72
commit
606589d9d8
@ -1375,8 +1375,10 @@ DocumentViewerImpl::Destroy()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mDocument->Destroy();
|
||||
mDocument = nsnull;
|
||||
if (mDocument) {
|
||||
mDocument->Destroy();
|
||||
mDocument = nsnull;
|
||||
}
|
||||
|
||||
// All callers are supposed to call destroy to break circular
|
||||
// references. If we do this stuff in the destructor, the
|
||||
|
Loading…
Reference in New Issue
Block a user