Closed Bug 9073 Opened 25 years ago Closed 25 years ago

nsAreaFrame::Init crashes; assumes memory request won't fail?

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: Brade, Assigned: troy)

Details

In a low memory situation, I crashed in the following code in nsAreaFrame::Init

    mSpaceManager = new nsSpaceManager(this);
    NS_ADDREF(mSpaceManager);

It really sucks to crash during low memory situations.
Assignee: rickg → troy
Troy -- a simple cleanup issue for you.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Changed Init() to return NS_ERROR_OUT_OF_MEMORY if we fail to allocate the space
manager
Status: RESOLVED → VERIFIED
Fixed in the July 6th Build.
You need to log in before you can comment on or make changes to this bug.