]> mj.ucw.cz Git - leo.git/blobdiff - style.c
style_results are freed after use
[leo.git] / style.c
diff --git a/style.c b/style.c
index d82c71213edb10571bdf9454a85937862cb77f59..b2a342ac267bf3ece60b0dc95b557ad3bfbc9d3d 100644 (file)
--- a/style.c
+++ b/style.c
@@ -64,6 +64,11 @@ void style_init(struct style_results *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);