SwiftZSTD icon indicating copy to clipboard operation
SwiftZSTD copied to clipboard

freeing dictionary makes the code working only once

Open alizx opened this issue 4 years ago • 1 comments

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) }
}

alizx avatar Aug 22 '20 17:08 alizx

+1

glve1027 avatar Jan 26 '24 02:01 glve1027