提交 c2c47b11 编写于 作者: R Richard Stanway

libobs: Check effect mutex exists before destroying it

Fixes a crash if graphics system didn't finish intializing.
上级 190eef07
......@@ -213,7 +213,8 @@ void gs_destroy(graphics_t *graphics)
}
pthread_mutex_destroy(&graphics->mutex);
pthread_mutex_destroy(&graphics->effect_mutex);
if (graphics->effect_mutex)
pthread_mutex_destroy(&graphics->effect_mutex);
da_free(graphics->matrix_stack);
da_free(graphics->viewport_stack);
da_free(graphics->blend_state_stack);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册