Attempt to fix pickle issues

This commit is contained in:
Dhinak G
2021-07-10 01:38:41 -04:00
parent 3b3f5b3290
commit 9cf19319c5
2 changed files with 5 additions and 3 deletions

View File

@@ -218,6 +218,8 @@ def ioiterator_to_list(iterator: io_iterator_t):
def corefoundation_to_native(collection):
if collection is None: # nullptr
return None
native = Conversion.pythonCollectionFromPropertyList(collection)
CFRelease(collection)
return native