浏览代码

decklink-output-ui: Fix memory leak

jp9000 6 年之前
父节点
当前提交
d2b107bc9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/frontend-plugins/decklink-output-ui/decklink-ui-main.cpp

+ 1 - 1
UI/frontend-plugins/decklink-output-ui/decklink-ui-main.cpp

@@ -80,7 +80,7 @@ void output_stop()
 
 OBSData load_preview_settings()
 {
-	char *path = obs_module_get_config_path(obs_current_module(),
+	BPtr<char> path = obs_module_get_config_path(obs_current_module(),
 			"decklinkPreviewOutputProps.json");
 	BPtr<char> jsonData = os_quick_read_utf8_file(path);
 	if (!!jsonData) {