Skip to content

Commit

Permalink
Make frames resonly
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jun 2, 2021
1 parent 5d2884e commit afee881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ImageSharp/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void Dispose()
/// </summary>
/// <param name="stream">The stream to save the image to.</param>
/// <param name="encoder">The encoder to save the image with.</param>
/// <exception cref="System.ArgumentNullException">Thrown if the stream or encoder is null.</exception>
/// <exception cref="ArgumentNullException">Thrown if the stream or encoder is null.</exception>
public void Save(Stream stream, IImageEncoder encoder)
{
Guard.NotNull(stream, nameof(stream));
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Image{TPixel}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace SixLabors.ImageSharp
public sealed class Image<TPixel> : Image
where TPixel : unmanaged, IPixel<TPixel>
{
private ImageFrameCollection<TPixel> frames;
private readonly ImageFrameCollection<TPixel> frames;

/// <summary>
/// Initializes a new instance of the <see cref="Image{TPixel}"/> class
Expand Down

0 comments on commit afee881

Please sign in to comment.