Bug 1245241 - fix SharedMemoryBasic_android CloseHandle to null out handle. r=billm a=kwierso

This commit is contained in:
Lee Salzman 2016-02-22 14:47:46 -05:00
parent 3ba702c04e
commit 726a9405c8

View File

@ -130,8 +130,9 @@ SharedMemoryBasic::Unmap()
void
SharedMemoryBasic::CloseHandle()
{
if (mShmFd > 0) {
if (mShmFd != -1) {
close(mShmFd);
mShmFd = -1;
}
}