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:
parent
8bcb2c3d42
commit
6698638450
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user