فهرست منبع

Don't close module if opening failed during graphics initialization

Christoph Hohmann 12 سال پیش
والد
کامیت
1a928f638c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      libobs/graphics/graphics.c

+ 2 - 1
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);
 }