mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-22 12:49:17 +01:00
Free trampolin data when unloading plugins
This commit is contained in:
parent
e38cd528bf
commit
7247ad3093
@ -99,6 +99,13 @@ void PluginManagement::unloadPlugins(plugin_information_t *gPluginInformation, M
|
|||||||
MEMFreeToExpHeap((MEMHeapHandle) pluginHeap, plugin->info.allocatedDataMemoryAddress);
|
MEMFreeToExpHeap((MEMHeapHandle) pluginHeap, plugin->info.allocatedDataMemoryAddress);
|
||||||
DEBUG_FUNCTION_LINE("Freed %08X", plugin->info.allocatedDataMemoryAddress);
|
DEBUG_FUNCTION_LINE("Freed %08X", plugin->info.allocatedDataMemoryAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (uint32_t i = 0; i < DYN_LINK_TRAMPOLIN_LIST_LENGTH; i++) {
|
||||||
|
if (gPluginInformation->trampolines[i].id == plugin->info.trampolinId) {
|
||||||
|
gPluginInformation->trampolines[i].id = 0;
|
||||||
|
gPluginInformation->trampolines[i].status = RELOC_TRAMP_FREE;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
memset((void *) gPluginInformation, 0, sizeof(plugin_information_t));
|
memset((void *) gPluginInformation, 0, sizeof(plugin_information_t));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user