Memory leaks
Opened this issue · 1 comments
carl-ranson commented
Couple of errors in your code that result in reference cycles.
- Node. previous should be a weak link
- Remove method doesn't set node's next and previous link to nil
- SwiftlyLRU subscript setter should use self.queue.remove(self.queue.tail!) to drop the node
cheers
CR