diff --git a/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SKGLElement.cs b/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SKGLElement.cs
index 00993eab5d..cc461301b8 100644
--- a/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SKGLElement.cs
+++ b/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SKGLElement.cs
@@ -215,6 +215,15 @@ private void Release()
public void Dispose()
{
Dispose(true);
+
+#if NET6_0_OR_GREATER
+ base.Dispose();
+#else
+ // Older version of OpenTK do not implement IDisposable
+ // And there is also a possible memory leak in the base class
+ // https://github.com/opentk/GLWpfControl/issues/126
+ // ToDo: Update OpenTK? manually dispose the base class?
+#endif
}
}
diff --git a/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SkiaSharp.Views.WPF.csproj b/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SkiaSharp.Views.WPF.csproj
index abbe34d934..b0bc7e9479 100644
--- a/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SkiaSharp.Views.WPF.csproj
+++ b/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SkiaSharp.Views.WPF.csproj
@@ -15,8 +15,8 @@
-
-
+
+