Skip to content

Commit

Permalink
Update Tile.cs
Browse files Browse the repository at this point in the history
Avoid  the 'Object reference not set to an instance of an object.' error
  • Loading branch information
LuGuangguang authored Aug 25, 2021
1 parent 24ba64a commit e5d35e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Yugen.Mosaic.Uwp/Models/Tile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void Process(Size tileSize, IRandomAccessStream RandomAccessStream)

public void Dispose()
{
ResizedImage.Dispose();
ResizedImage?.Dispose();
ResizedImage = null;
}
}
}
}

0 comments on commit e5d35e5

Please sign in to comment.