obs-transitions: Fix memory leak

Fixes a memory leak with stinger texrender objects. These functions must
be called while the graphics context is locked. Caught via warnings
generated by the destroy functions.
This commit is contained in:
jp9000 2021-05-13 15:13:07 -07:00
parent 8bcb2c3d42
commit 6698638450

View File

@ -200,11 +200,14 @@ static void stinger_destroy(void *data)
obs_source_release(s->media_source);
obs_source_release(s->matte_source);
obs_enter_graphics();
gs_texrender_destroy(s->matte_tex);
gs_texrender_destroy(s->stinger_tex);
gs_effect_destroy(s->matte_effect);
obs_leave_graphics();
bfree(s);
}