Closed sareninden closed 8 years ago
In the ADClusterMapView.m interface part is an secondary delegate declared. @interface ADClusterMapView () { @private id _secondaryDelegate;
This should be weak to prevent retain cycles, currently delegates are retained strongly causing a retain cycle.
suggested code
@interface ADClusterMapView () { @private __weak id _secondaryDelegate;
This can easily be reproduced by creating a view controller with the ADClusterMapView and setting the delegate. presenting this view controller and dismissing it will not call dealloc.
Fixed in version 1.1.1
In the ADClusterMapView.m interface part is an secondary delegate declared. @interface ADClusterMapView ()
{
@private
id _secondaryDelegate;
This should be weak to prevent retain cycles, currently delegates are retained strongly causing a retain cycle.
suggested code
@interface ADClusterMapView ()
{
@private
__weak id _secondaryDelegate;