filter-shadow-sdf: Actually delete instances in destroy()

This fixes a memory leak discovered by @catb0t.

Related #33
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-25 00:31:50 +01:00
parent ddfb08f39e
commit a37d9bbb59

View file

@ -406,6 +406,7 @@ void filter::shadow_sdf::shadow_sdf_factory::destroy(void* inptr)
if (get()->sources.empty()) {
get()->on_list_empty();
}
delete ptr;
}
void filter::shadow_sdf::shadow_sdf_factory::get_defaults(obs_data_t* data)