diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2016-11-24 13:34:46 -0600 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2016-11-24 20:34:46 +0100 |
commit | 1f3d5ecd260c836563b34efe2be3f8e287582eaf (patch) | |
tree | 640e183debe00384e74b7c35a169417c136ec869 /Xamarin.Forms.Pages | |
parent | 57152381377d2b09f749f46b829add58f1ab1930 (diff) | |
download | xamarin-forms-1f3d5ecd260c836563b34efe2be3f8e287582eaf.tar.gz xamarin-forms-1f3d5ecd260c836563b34efe2be3f8e287582eaf.tar.bz2 xamarin-forms-1f3d5ecd260c836563b34efe2be3f8e287582eaf.zip |
fix weakreferences (#558)
Diffstat (limited to 'Xamarin.Forms.Pages')
-rw-r--r-- | Xamarin.Forms.Pages/DataSourceBinding.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Pages/DataSourceBinding.cs b/Xamarin.Forms.Pages/DataSourceBinding.cs index 44af47b4..7491ca30 100644 --- a/Xamarin.Forms.Pages/DataSourceBinding.cs +++ b/Xamarin.Forms.Pages/DataSourceBinding.cs @@ -120,11 +120,8 @@ namespace Xamarin.Forms.Pages { base.Unapply(); - if (_dataSourceRef != null && _dataSourceRef.IsAlive) - { - var dataSourceProviderer = (IDataSourceProvider)_dataSourceRef.Target; - dataSourceProviderer?.UnmaskKey(_path); - } + var dataSourceProviderer = (IDataSourceProvider)_dataSourceRef?.Target; + dataSourceProviderer?.UnmaskKey(_path); _expression?.Unapply(); } |