From 2a06beea45874a2a287f4cc962910cdc8178e324 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 25 Feb 2015 21:21:40 -0800 Subject: [PATCH] test-input: Fix potential lockup in test filter obs_leave_graphics() may not be properly called if this returns null for whatever reason. --- test/test-input/test-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-input/test-filter.c b/test/test-input/test-filter.c index c3e6d057f..ffcc07657 100644 --- a/test/test-input/test-filter.c +++ b/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();