mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
filter-shadow-sdf: Actually delete instances in destroy()
This fixes a memory leak discovered by @catb0t. Related #33
This commit is contained in:
parent
ddfb08f39e
commit
a37d9bbb59
1 changed files with 1 additions and 0 deletions
|
@ -406,6 +406,7 @@ void filter::shadow_sdf::shadow_sdf_factory::destroy(void* inptr)
|
||||||
if (get()->sources.empty()) {
|
if (get()->sources.empty()) {
|
||||||
get()->on_list_empty();
|
get()->on_list_empty();
|
||||||
}
|
}
|
||||||
|
delete ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void filter::shadow_sdf::shadow_sdf_factory::get_defaults(obs_data_t* data)
|
void filter::shadow_sdf::shadow_sdf_factory::get_defaults(obs_data_t* data)
|
||||||
|
|
Loading…
Reference in a new issue