chiahsien/CHTCollectionViewWaterfallLayout

Memory leak on the layout

p0kjin opened this issue · 1 comments

The debug navigator claims that
1 instance of _NativeDictionaryStorageImpl<Int, UICollectionViewLayoutAttributes> leaks.
1 instance of _NativeDictionaryStorageImpl<Int, UICollectionViewLayoutAttributes> leaks.

It happens both in my app and the CHTWaterfallSwiftDemo, but not in the objc version.

__ Update.

Seems like is due to

var headersAttributes: [Int: UICollectionViewLayoutAttributes]
var footersAttributes: [Int: UICollectionViewLayoutAttributes]

Don't know how these will be causing an issue though. Seems like is a bug from Apple

Look at the linked issue. Have a fix there.