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

VERIFIED FIXED

Status

()

Core
Layout
P3
major
VERIFIED FIXED
19 years ago
19 years ago

People

(Reporter: Brade, Assigned: troy)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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.

Updated

19 years ago
Assignee: rickg → troy

Comment 1

19 years ago
Troy -- a simple cleanup issue for you.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 2

19 years ago
Changed Init() to return NS_ERROR_OUT_OF_MEMORY if we fail to allocate the space
manager

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 3

19 years ago
Fixed in the July 6th Build.
You need to log in before you can comment on or make changes to this bug.