diff --git a/libobs/graphics/graphics.c b/libobs/graphics/graphics.c index 2226b5215..13915f555 100644 --- a/libobs/graphics/graphics.c +++ b/libobs/graphics/graphics.c @@ -159,7 +159,8 @@ void gs_destroy(graphics_t graphics) pthread_mutex_destroy(&graphics->mutex); da_free(graphics->matrix_stack); da_free(graphics->viewport_stack); - os_dlclose(graphics->module); + if (graphics->module) + os_dlclose(graphics->module); bfree(graphics); }