mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
3c7bad32cd
commit
62e7d1b5c8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user