From a37d9bbb592951bdec8aea691228f8dba7b7ce81 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 25 Jan 2019 00:31:50 +0100 Subject: [PATCH] filter-shadow-sdf: Actually delete instances in destroy() This fixes a memory leak discovered by @catb0t. Related #33 --- source/filter-shadow-sdf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/filter-shadow-sdf.cpp b/source/filter-shadow-sdf.cpp index 02178aa1..b92e5f1e 100644 --- a/source/filter-shadow-sdf.cpp +++ b/source/filter-shadow-sdf.cpp @@ -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)