Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RouR committed May 28, 2022
1 parent 8e74289 commit 9388366
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sources/SwiftZSTD/DictionaryZSTDProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ public class DictionaryZSTDProcessor
dict = withDictionary
compLevel = andCompressionLevel
}

deinit {
if (haveCDict) { ZSTD_freeCDict(compDict) }
if (haveDDict) { ZSTD_freeDDict(decompDict) }
}

// try fix https://github.com/aperedera/SwiftZSTD/issues/6
// deinit {
// if (haveCDict) { ZSTD_freeCDict(compDict) }
// if (haveDDict) { ZSTD_freeDDict(decompDict) }
// }

/**
* Compress a buffer using the dictionary and compression level specified at
Expand Down

0 comments on commit 9388366

Please sign in to comment.