mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Cleanup memory.
This commit is contained in:
parent
0e3854555d
commit
ddbebcda6c
1 changed files with 11 additions and 0 deletions
|
|
@ -233,6 +233,17 @@ XenonMemory::XenonMemory() :
|
|||
}
|
||||
|
||||
XenonMemory::~XenonMemory() {
|
||||
// Remove exception handlers.
|
||||
RemoveVectoredExceptionHandler(CheckMMIOHandler);
|
||||
RemoveVectoredContinueHandler(CheckMMIOHandler);
|
||||
|
||||
// Unallocate mapped ranges.
|
||||
for (int i = 0; i < g_mapped_range_count_; ++i) {
|
||||
const auto& range = g_mapped_ranges_[i];
|
||||
VirtualFree(reinterpret_cast<LPVOID>(range.address), range.size,
|
||||
MEM_DECOMMIT);
|
||||
}
|
||||
|
||||
if (mapping_base_) {
|
||||
// GPU writeback.
|
||||
VirtualFree(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue