Fix for bug #9073. Changed Init() to return NS_ERROR_OUT_OF_MEMORY if we fail
to allocate the space manager git-svn-id: svn://10.0.0.236/trunk@38175 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -92,6 +92,9 @@ nsAreaFrame::Init(nsIPresContext& aPresContext,
|
||||
// Create a space manager if requested
|
||||
if (0 == (mFlags & NS_AREA_NO_SPACE_MGR)) {
|
||||
mSpaceManager = new nsSpaceManager(this);
|
||||
if (!mSpaceManager) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
NS_ADDREF(mSpaceManager);
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,9 @@ nsAreaFrame::Init(nsIPresContext& aPresContext,
|
||||
// Create a space manager if requested
|
||||
if (0 == (mFlags & NS_AREA_NO_SPACE_MGR)) {
|
||||
mSpaceManager = new nsSpaceManager(this);
|
||||
if (!mSpaceManager) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
NS_ADDREF(mSpaceManager);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user