Commit 22a9d00b authored by Xavier Thompson's avatar Xavier Thompson

Fix keys and values needing decref on cypclass dict destruction

parent 79fc7bdd
......@@ -249,6 +249,11 @@ cdef cypclass cypdict[K, V]:
__init__(self):
self._active_iterators.store(0)
__dealloc__(self):
for item in self._items:
Cy_DECREF(item.first)
Cy_DECREF(item.second)
V __getitem__(self, const key_type key) except ~:
it = self._indices.find(key)
end = self._indices.end()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment