summaryrefslogtreecommitdiffstats
path: root/libdimension/pigment_map.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 19:23:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 19:23:34 -0400
commit72daebf48e4a27de9f6633b2693ab96fb4ef1e44 (patch)
tree41d98c736ea9fcb6cdc47c621130b08b48a145de /libdimension/pigment_map.c
parent8807ab192b36acbc94e11790e9261c799ce77892 (diff)
downloaddimension-72daebf48e4a27de9f6633b2693ab96fb4ef1e44.tar.xz
map: Use pool.
Diffstat (limited to 'libdimension/pigment_map.c')
-rw-r--r--libdimension/pigment_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/pigment_map.c b/libdimension/pigment_map.c
index 6f07f15..a8a4b75 100644
--- a/libdimension/pigment_map.c
+++ b/libdimension/pigment_map.c
@@ -42,9 +42,9 @@ dmnsn_delete_mapped_pigment(void *ptr)
}
dmnsn_map *
-dmnsn_new_pigment_map(void)
+dmnsn_new_pigment_map(dmnsn_pool *pool)
{
- dmnsn_map *pigment_map = dmnsn_new_map(sizeof(dmnsn_pigment *));
+ dmnsn_map *pigment_map = dmnsn_new_map(pool, sizeof(dmnsn_pigment *));
pigment_map->free_fn = dmnsn_delete_mapped_pigment;
return pigment_map;
}
@@ -62,7 +62,6 @@ static void
dmnsn_pigment_map_free_fn(dmnsn_pigment *pigment)
{
dmnsn_pigment_map *pigment_map = (dmnsn_pigment_map *)pigment;
- dmnsn_delete_map(pigment_map->map);
dmnsn_free(pigment_map);
}