浏览代码

test-input: Fix potential lockup in test filter

obs_leave_graphics() may not be properly called if this returns null for
whatever reason.
jp9000 10 年之前
父节点
当前提交
2a06beea45
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/test-input/test-filter.c

+ 1 - 1
test/test-input/test-filter.c

@@ -38,7 +38,7 @@ static void *filter_create(obs_data_t *settings, obs_source_t *source)
 	bfree(effect_file);
 	if (!tf->whatever) {
 		filter_destroy(tf);
-		return NULL;
+		tf = NULL;
 	}
 
 	obs_leave_graphics();