Skip to content

Commit db4bb5e

Browse files
jdcaballerovmgautierfr
authored andcommitted
Add content reference
1 parent 10305bb commit db4bb5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libzim/libzim.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ cdef class ZimBlob:
1919
cdef Blob* c_blob
2020

2121
def __init__(self, bytes content):
22-
self.c_blob = new Blob(<char *> content, len(content))
22+
ref_content = content
23+
self.c_blob = new Blob(<char *> ref_content, len(content))
2324

2425
def __dealloc__(self):
2526
if self.c_blob != NULL:

0 commit comments

Comments
 (0)