зеркало из https://github.com/mozilla/pjs.git
set deleted pointers to nsnull. just to be safe. r=hyatt
This commit is contained in:
Родитель
737bc85937
Коммит
b524c35438
|
@ -320,17 +320,25 @@ nsTableFrame::Init(nsIPresContext& aPresContext,
|
|||
|
||||
nsTableFrame::~nsTableFrame()
|
||||
{
|
||||
if (nsnull!=mCellMap)
|
||||
if (nsnull!=mCellMap) {
|
||||
delete mCellMap;
|
||||
mCellMap = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mColumnWidths)
|
||||
if (nsnull!=mColumnWidths) {
|
||||
delete [] mColumnWidths;
|
||||
mColumnWidths = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mTableLayoutStrategy)
|
||||
if (nsnull!=mTableLayoutStrategy) {
|
||||
delete mTableLayoutStrategy;
|
||||
mTableLayoutStrategy = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mColCache)
|
||||
if (nsnull!=mColCache) {
|
||||
delete mColCache;
|
||||
mColCache = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -4615,6 +4623,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
|
|||
if (PR_TRUE==gsDebugIR) printf("TIF BCC: clearing column cache and cell map column frame cache.\n");
|
||||
mCellMap->ClearColumnCache();
|
||||
delete mColCache;
|
||||
mColCache = nsnull;
|
||||
}
|
||||
|
||||
mColCache = new ColumnInfoCache(GetColCount());
|
||||
|
|
|
@ -320,17 +320,25 @@ nsTableFrame::Init(nsIPresContext& aPresContext,
|
|||
|
||||
nsTableFrame::~nsTableFrame()
|
||||
{
|
||||
if (nsnull!=mCellMap)
|
||||
if (nsnull!=mCellMap) {
|
||||
delete mCellMap;
|
||||
mCellMap = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mColumnWidths)
|
||||
if (nsnull!=mColumnWidths) {
|
||||
delete [] mColumnWidths;
|
||||
mColumnWidths = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mTableLayoutStrategy)
|
||||
if (nsnull!=mTableLayoutStrategy) {
|
||||
delete mTableLayoutStrategy;
|
||||
mTableLayoutStrategy = nsnull;
|
||||
}
|
||||
|
||||
if (nsnull!=mColCache)
|
||||
if (nsnull!=mColCache) {
|
||||
delete mColCache;
|
||||
mColCache = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -4615,6 +4623,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
|
|||
if (PR_TRUE==gsDebugIR) printf("TIF BCC: clearing column cache and cell map column frame cache.\n");
|
||||
mCellMap->ClearColumnCache();
|
||||
delete mColCache;
|
||||
mColCache = nsnull;
|
||||
}
|
||||
|
||||
mColCache = new ColumnInfoCache(GetColCount());
|
||||
|
|
Загрузка…
Ссылка в новой задаче