Remove call of OSDynLoad_Release for handles that have not been acquired

This commit is contained in:
Maschell 2022-12-30 18:37:26 +01:00
parent 9ad95fe6a8
commit c719b4c8ac

View File

@ -55,7 +55,6 @@ void FunctionAddressProvider::resetHandles() {
for (int32_t i = 0; i < rpl_handles_size; i++) {
if (rpl_handles[i].handle != nullptr) {
DEBUG_FUNCTION_LINE_VERBOSE("Resetting handle for rpl: %s", rpl_handles[i].rplname);
OSDynLoad_Release(rpl_handles[i].handle);
}
rpl_handles[i].handle = nullptr;