Skip to content

Commit 9a12335

Browse files
Dispose Canvas then ensure surface handle release
1 parent f043269 commit 9a12335

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ImageSharp.Drawing.WebGPU/WebGPUSurfaceFrame{TPixel}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public void Dispose()
5656
{
5757
this.Canvas.Flush();
5858
this.api.SurfacePresent((Surface*)this.surfaceReference.Handle);
59+
this.Canvas.Dispose();
5960
}
6061
finally
6162
{
62-
this.Canvas.Dispose();
6363
this.textureViewHandle.Dispose();
6464
this.textureHandle.Dispose();
6565
this.surfaceReference.Dispose();

0 commit comments

Comments
 (0)