зеркало из https://github.com/mozilla/gecko-dev.git
Bug 109500. Memory leak of 52 bytes in grid code. Patch by Brian Ryner (bryner@netscape.com). r=bryner@netscape.com, sr=shaver@mozilla.org
This commit is contained in:
Родитель
e28d9642d4
Коммит
6c9cfdd57b
|
@ -414,8 +414,10 @@ nsGrid::BuildCellMap(PRInt32 aRows, PRInt32 aColumns, nsGridCell** aCells)
|
|||
{
|
||||
PRInt32 size = aRows*aColumns;
|
||||
PRInt32 oldsize = mRowCount*mColumnCount;
|
||||
if (size == 0)
|
||||
if (size == 0) {
|
||||
delete[] mCellMap;
|
||||
(*aCells) = nsnull;
|
||||
}
|
||||
else {
|
||||
if (size > oldsize) {
|
||||
delete[] mCellMap;
|
||||
|
|
Загрузка…
Ссылка в новой задаче