Browse Source

Add a using

Equbuxu 3 years ago
parent
commit
180a2db5a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/Undo/StorageBasedChange.cs

+ 1 - 1
PixiEditor/Models/Undo/StorageBasedChange.cs

@@ -93,7 +93,7 @@ namespace PixiEditor.Models.Undo
                         storedLayer.SerializedRect.Height);
 
                     using var image = layer.LayerBitmap.SkiaSurface.Snapshot();
-                    Surface targetSizeSurface = new Surface(finalRect.Width, finalRect.Height);
+                    using Surface targetSizeSurface = new Surface(finalRect.Width, finalRect.Height);
 
                     targetSizeSurface.SkiaSurface.Canvas.DrawImage(image, finalRect, SKRect.Create(0, 0, finalRect.Width, finalRect.Height), Surface.ReplacingPaint);