libobs/util: Check for null pointer before calling dlclose
Apparently dlclose can crash if you use it with a null pointer.
This commit is contained in:
parent
f7ac9258d4
commit
1c37200549
@ -68,7 +68,8 @@ void *os_dlsym(void *module, const char *func)
|
||||
|
||||
void os_dlclose(void *module)
|
||||
{
|
||||
dlclose(module);
|
||||
if (module)
|
||||
dlclose(module);
|
||||
}
|
||||
|
||||
#if !defined(__APPLE__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user