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:
jp9000 2016-05-30 16:03:01 -07:00
parent f7ac9258d4
commit 1c37200549

View File

@ -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__)