Bugzilla: 92610. Mozilla on MacOS crashes in plarena

This commit is contained in:
larryh%netscape.com 2001-07-27 20:34:04 +00:00
Родитель 73c0d4e146
Коммит 0ba921175d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -206,7 +206,7 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb)
/* attempt to allocate from the heap */
{
PRUint32 sz = PR_MAX(pool->arenasize, nb);
sz += (PRUword)PL_ARENA_ALIGN(pool, sizeof(*a)); /* force alignment */
sz += sizeof *a + pool->mask; /* header and alignment slop */
a = (PLArena*)PR_MALLOC(sz);
if ( NULL != a ) {
a->limit = (PRUword)a + sz;