Skip to content

Commit b2ecfad

Browse files
committed
Update ImageAPI.cs
1 parent a3ce16d commit b2ecfad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ImageAPI.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ private static FileStreamResult FileStreamResult(BackGround backGround)
2121
var ms = new MemoryStream();
2222
backGround.SaveAsJpgWithQuality(ms);
2323
ms.Position = 0;
24+
backGround.Dispose();
2425
return new(ms, "image/jpeg");
2526
}
2627

0 commit comments

Comments
 (0)