fixed over-releasing of views in DeleteFrame().

This commit is contained in:
michaelp 1998-05-29 22:36:21 +00:00
parent 510e324526
commit 739c83297e

View File

@ -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);
}