mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
fixed over-releasing of views in DeleteFrame().
This commit is contained in:
parent
510e324526
commit
739c83297e
@ -236,7 +236,8 @@ NS_METHOD nsFrame::DeleteFrame()
|
||||
nsIPresContext* cx = vm->GetPresContext();
|
||||
// XXX Is this a really good ordering for the releases? MMP
|
||||
NS_RELEASE(vm);
|
||||
NS_RELEASE(view);
|
||||
if (view != mView) //if this is the view that we own, let's not release it...
|
||||
NS_RELEASE(view);
|
||||
cx->StopLoadImage(this);
|
||||
NS_RELEASE(cx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user