aperedera / SwiftZSTD

Swift wrapper around ZSTD compression lib
Other
67 stars 15 forks source link

freeing dictionary makes the code working only once #6

Open alizx opened 4 years ago

alizx commented 4 years ago

for my code to work I need to comment out these two lines. other than that it can decompress only once.

deinit {
       if (haveCDict) { ZSTD_freeCDict(compDict) }
       if (haveDDict) { ZSTD_freeDDict(decompDict) }
}
glve1027 commented 6 months ago

+1