Fix memory leak in NSFilters.