Update ItemsViewLayout.cs (#6583)
authorE.Z. Hart <hartez@gmail.com>
Thu, 20 Jun 2019 17:48:36 +0000 (11:48 -0600)
committerE.Z. Hart <hartez@gmail.com>
Thu, 20 Jun 2019 17:48:36 +0000 (11:48 -0600)
Unsubscribe from PropertyChanged during Dispose() on ItemsViewLayout (iOS).

Xamarin.Forms.Platform.iOS/CollectionView/ItemsViewLayout.cs

index 0d41d81..21f398a 100644 (file)
@@ -51,7 +51,7 @@ namespace Xamarin.Forms.Platform.iOS
                        {
                                if (_itemsLayout != null)
                                {
-                                       _itemsLayout.PropertyChanged += LayoutOnPropertyChanged;
+                                       _itemsLayout.PropertyChanged -= LayoutOnPropertyChanged;
                                }
                        }