mono / SkiaSharp.Extended

SkiaSharp is a cross-platform, comprehensive 2D graphics API for all .NET platforms. And, here is where you will find all sorts of extras that you can use with it.
https://mono.github.io/SkiaSharp.Extended
MIT License
218 stars 69 forks source link

Fix a crash when closing the app when running #269

Closed mattleibow closed 2 months ago

mattleibow commented 2 months ago

Description of Change

After #267, the views are no longer leaking. This is good, but now the views are potentially collected and the timer will still try invalidating.

Not sure how it never came up in testing, but this PR will now also make sure the view is valid and loaded befoer drawing.