exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.01k stars 553 forks source link

Fixed retain cycle between GroupRenderer and `parentRenderer` #717

Closed devpolant closed 4 years ago

devpolant commented 4 years ago

Updates

In this pull request I fixed retain cycle between GroupRenderer and NodeRenderer:

I saw that you are trying to broke the retain cycle in dispose() method inside deinit, but deinit won't be called while this retain cycle exists and I didn't see any other place where dispose() method could be called from outside.