mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-29 02:22:37 -06:00
Attempt to fix crashes with LLE applets
This commit is contained in:
parent
d4ccce1365
commit
74c06bd13e
1 changed files with 4 additions and 2 deletions
|
@ -284,8 +284,10 @@ void MemorySystem::RegisterPageTable(std::shared_ptr<PageTable> page_table) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemorySystem::UnregisterPageTable(std::shared_ptr<PageTable> page_table) {
|
void MemorySystem::UnregisterPageTable(std::shared_ptr<PageTable> page_table) {
|
||||||
impl->page_table_list.erase(
|
auto it = std::find(impl->page_table_list.begin(), impl->page_table_list.end(), page_table);
|
||||||
std::find(impl->page_table_list.begin(), impl->page_table_list.end(), page_table));
|
if (it != impl->page_table_list.end()) {
|
||||||
|
impl->page_table_list.erase(it);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue