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;