Bug 1798600 - Use Created() during creation instead of Mapped(). r=nika

This is less of lie and avoids calling Mapped() twice. Once during
SharedMemoryBasic::Create and once during SharedMemoryBasic::Map.

This fixes shmem-mapped giving the appearence of leaking because
of the double counting.

Differential Revision: https://phabricator.services.mozilla.com/D160990
This commit is contained in:
Jeff Muizelaar 2022-11-02 19:27:49 +00:00
Родитель 823bd3a8b0
Коммит e63cdeb5e9
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -81,7 +81,7 @@ bool SharedMemoryBasic::Create(size_t size) {
return false;
}
Mapped(size);
Created(size);
return true;
}