jp9000/obs-studio — pull request #17 by reboot (2014-01-03 17:27:45+00:00)
Title: Don't close module if opening failed during graphics initialization

If os_dlopen() fails in gs_create() the error handling is executed which calls gs_destroy(). gs_destroy() always tries to close graphics->module even if no module was loaded in gs_create(). If os_dlclose() is called with NULL on Linux it causes a segmentation fault.