瀏覽代碼

Revert "libobs: Check effect mutex exists before destroying it"

This reverts commit c2c47b1169b272498bdd6ffb1416f6d518200059.
Palana 10 年之前
父節點
當前提交
f981b58b43
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      libobs/graphics/graphics.c

+ 1 - 2
libobs/graphics/graphics.c

@@ -213,8 +213,7 @@ void gs_destroy(graphics_t *graphics)
 	}
 
 	pthread_mutex_destroy(&graphics->mutex);
-	if (graphics->effect_mutex)
-		pthread_mutex_destroy(&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);