PinterestLayout icon indicating copy to clipboard operation
PinterestLayout copied to clipboard

Memory leak issue

Open ranhsd opened this issue 7 years ago • 0 comments

Hi, I just tried this library in one of my project and I found some issue with the delegate variable. This variable is declared as strong variable means that if I will write:

layout.delegate = self

I am actually holding a strong reference to my view controller. This delegate needs to be changed to weak so the view controller can be released.

Thanks, Ran

ranhsd avatar Jan 07 '18 20:01 ranhsd