Skip to content

Commit 72f804e

Browse files
committed
Delete the c ZimCreator when we dealloc the python ZimCreator.
1 parent aaa01a4 commit 72f804e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libzim/libzim.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ cdef class ZimCreator:
224224
self._article_counter = defaultdict(int)
225225
self.update_metadata(date=datetime.date.today(), language= index_language)
226226

227+
def __dealloc__(self):
228+
del self.c_creator
227229

228230
@property
229231
def filename(self):

0 commit comments

Comments
 (0)