Only unmap after freeing the memory
This commit is contained in:
parent
00a519b466
commit
c5ab5f956f
1 changed files with 4 additions and 4 deletions
|
@ -259,9 +259,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
|
||||
InsertBlock(FreeAddr, PagesCount, MemoryState.Unmapped);
|
||||
|
||||
CpuMemory.Unmap(FreeAddr, DiffSize);
|
||||
|
||||
FreePages(FreeAddr, PagesCount);
|
||||
|
||||
CpuMemory.Unmap(FreeAddr, DiffSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -712,10 +712,10 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
|
||||
InsertBlock(Position, PagesCount, MemoryState.Unmapped);
|
||||
|
||||
CpuMemory.Unmap(Position, Size);
|
||||
|
||||
FreePages(Position, PagesCount);
|
||||
|
||||
CpuMemory.Unmap(Position, Size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue