summaryrefslogtreecommitdiffstats
path: root/libdimension-python
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-python
parent8807ab192b36acbc94e11790e9261c799ce77892 (diff)
downloaddimension-72daebf48e4a27de9f6633b2693ab96fb4ef1e44.tar.xz
map: Use pool.
Diffstat (limited to 'libdimension-python')
-rw-r--r--libdimension-python/dimension.pxd4
-rw-r--r--libdimension-python/dimension.pyx2
2 files changed, 2 insertions, 4 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index f6333cc..4303871 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -240,12 +240,10 @@ cdef extern from "../libdimension/dimension.h":
ctypedef struct dmnsn_map:
pass
- void dmnsn_delete_map(dmnsn_map *map)
-
void dmnsn_map_add_entry(dmnsn_map *map, double n, void *obj)
size_t dmnsn_map_size(dmnsn_map *map)
- dmnsn_map *dmnsn_new_pigment_map()
+ dmnsn_map *dmnsn_new_pigment_map(dmnsn_pool *pool)
############
# Pigments #
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 534781c..5e02aff 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -851,7 +851,7 @@ cdef class PigmentMap(Pigment):
sRGB -- whether the gradients should be in sRGB or linear space
(default True)
"""
- cdef dmnsn_map *pigment_map = dmnsn_new_pigment_map()
+ cdef dmnsn_map *pigment_map = dmnsn_new_pigment_map(_get_pool())
cdef dmnsn_pigment *real_pigment
if hasattr(map, "items"):
for i, pigment in map.items():