AK: Remove FreeLibrary call in assertion handler

The call to FreeLibrary was incorrect as GetModuleHandle does not
increment the reference count of the DLL.
This commit is contained in:
R-Goc 2025-10-07 22:24:50 +02:00 committed by Jelle Raaijmakers
parent 3c7bad32cd
commit 62e7d1b5c8

View File

@ -152,7 +152,6 @@ static AssertionHandlerFunc get_custom_assertion_handler()
# pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
auto handler = reinterpret_cast<AssertionHandlerFunc>(GetProcAddress(module, "ak_assertion_handler"));
# pragma clang diagnostic pop
FreeLibrary(module);
return handler;
}
return nullptr;