diff --git a/src/Gtk/Perspex.Cairo/RenderTarget.cs b/src/Gtk/Perspex.Cairo/RenderTarget.cs index 83edc10f31..b8de2e2166 100644 --- a/src/Gtk/Perspex.Cairo/RenderTarget.cs +++ b/src/Gtk/Perspex.Cairo/RenderTarget.cs @@ -13,7 +13,7 @@ namespace Perspex.Cairo using global::Cairo; /// - /// A cairo renderer. + /// A cairo render target. /// public class RenderTarget : IRenderTarget { @@ -51,7 +51,6 @@ namespace Perspex.Cairo /// /// Creates a cairo surface that targets a platform-specific resource. /// - /// The platform-specific handle. /// A surface wrapped in an . public IDrawingContext CreateDrawingContext() { @@ -72,10 +71,6 @@ namespace Perspex.Cairo } } - public void Dispose() - { - if (_surface != null) - _surface.Dispose(); - } + public void Dispose() => _surface?.Dispose(); } }