}
}
- // FIXME: Ought to destroy the style_results
+ style_cleanup(&r);
}
r->active_layers = mp_alloc_zero(r->pool, r->num_layers * sizeof(layer_t));
}
+void style_cleanup(struct style_results *r)
+{
+ mp_delete(r->pool);
+}
+
void style_begin(struct style_results *r, struct osm_object *o)
{
ASSERT(!r->num_active_layers);
void styles_init(void);
void style_init(struct style_results *r);
+void style_cleanup(struct style_results *r);
void style_begin(struct style_results *r, struct osm_object *o);
void style_end(struct style_results *r);