Update ItemsViewLayout.cs (#6583)
authorElias Puurunen <elias@puurunen.ca>
Thu, 20 Jun 2019 17:46:19 +0000 (13:46 -0400)
committerE.Z. Hart <hartez@users.noreply.github.com>
Thu, 20 Jun 2019 17:46:19 +0000 (11:46 -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;
                                }
                        }