mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-04 06:36:08 -05:00
test-input: Fix potential lockup in test filter
obs_leave_graphics() may not be properly called if this returns null for whatever reason.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user