-
-
Notifications
You must be signed in to change notification settings - Fork 890
Fixed Issue#1628 #1629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JimBobSquarePants
merged 23 commits into
SixLabors:master
from
br3aker:image-disposed-fix
Jun 2, 2021
Merged
Fixed Issue#1628 #1629
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7900b43
Image<TPixel>.Frames now properly throws ObjectDisposedException afte…
d48b152
Image<TPixel> private methods no longer check if object was disposed …
7029b2f
Image<TPixel> private property PixelSource no longer checks if object…
1c45c1a
Removed GC.SuppressFinalize(this) from Image.Dispose() due to it not …
095ce41
Added tests for issue#1628
acf9d85
Moved dispose control logic to base Image class
8ec1013
Removed redundant flag from Image.Dispose(bool) call
ff4b269
Removed invalid tests
cbca565
ImageFrameCollection now properly implements IDisposable interface & …
127e9dd
All ImageFrameCollection<TPixel> public properties & method now check…
3f8bd3d
Added internal accessor for root frame
009e935
Added tests for issues#1628
f0f0c08
Fixed couple of invalid tests for ImageFrameCollection<TPixel>
a71ce19
ImageFrameCollection.Contains first checks if it was disposed first
f561053
Fixed a couple of failing tests
34706fb
Merge branch 'master' into image-disposed-fix
JimBobSquarePants 1c8dcef
Renamed private Image<TPixel>.PixelSourse to PixelSourceUnsafe
e787ffa
Implemented dispose method according to common convention.
d54ff0e
Fixed disposable resouce leak in unit test.
5704403
Implemented ThrowObjectDisposedException for the ThrowHelper, replace…
65808ae
Fix throwhelper
JimBobSquarePants 5d2884e
Merge branch 'master' into pr/1629
JimBobSquarePants afee881
Make frames resonly
JimBobSquarePants File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removed GC.SuppressFinalize(this) from Image.Dispose() due to it not …
…having a Finalization method
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be removing the finalizer suppression in the base class.
https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose#the-dispose-method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know
SuppressFinalizedo nothing if type has no finalizer, thanks!