зеркало из https://github.com/mozilla/pjs.git
Fixed memory leak (bug #910)
This commit is contained in:
Родитель
36c215ef4b
Коммит
9632c87bbf
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
|
@ -1511,6 +1511,14 @@ nsBlockFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildList)
|
|||
NS_IMETHODIMP
|
||||
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// When we have a bullet frame and it's not in our child list then
|
||||
// we need to delete it ourselves (this is the common case for
|
||||
// list-item's that have outside bullets).
|
||||
if ((nsnull != mBullet) &&
|
||||
((nsnull == mLines) || (mBullet != mLines->mFirstChild))) {
|
||||
mBullet->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
DeleteLineList(aPresContext, mLines);
|
||||
DeleteLineList(aPresContext, mOverflowLines);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче