From e2041a4373f549ab72c009242c16a27f5a3e1a2d Mon Sep 17 00:00:00 2001 From: Sander Mertens Date: Wed, 2 Aug 2023 21:39:39 -0700 Subject: [PATCH] Cleanup filter in JSON serialize alerts function --- flecs.c | 2 ++ src/addons/json/serialize.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/flecs.c b/flecs.c index 5ca203a1d9..ffc4a4b5a3 100644 --- a/flecs.c +++ b/flecs.c @@ -35109,6 +35109,8 @@ int flecs_json_serialize_children_alerts( } } + ecs_filter_fini(&f); + return 0; error: return -1; diff --git a/src/addons/json/serialize.c b/src/addons/json/serialize.c index 31d8057404..36aa2dac67 100644 --- a/src/addons/json/serialize.c +++ b/src/addons/json/serialize.c @@ -1050,6 +1050,8 @@ int flecs_json_serialize_children_alerts( } } + ecs_filter_fini(&f); + return 0; error: return -1;