Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Dispose check on ButtonRenderer (#975)
Browse files Browse the repository at this point in the history
Check if buttonrenderer is disposed when making changes
  • Loading branch information
bentmar authored and rmarinho committed Jun 12, 2017
1 parent ac865bb commit d9cf955
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ protected virtual void OnElementChanged(ElementChangedEventArgs<Button> e)
{
_backgroundTracker?.Reset();
}
if (e.NewElement != null)
if (e.NewElement != null && !_isDisposed)
{
UpdateFont();
UpdateText();
Expand Down Expand Up @@ -452,4 +452,4 @@ void UpdateDrawable()
}

}
}
}

0 comments on commit d9cf955

Please sign in to comment.