We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e1340 commit 248e645Copy full SHA for 248e645
1 file changed
IronSoftware.Drawing/IronSoftware.Drawing.Common/AnyBitmap.cs
@@ -2549,10 +2549,12 @@ protected virtual void Dispose(bool disposing)
2549
{
2550
return;
2551
}
2552
-
2553
- foreach (var x in GetInternalImages() ?? [])
+ if (IsImageLoaded())
2554
2555
- x.Dispose();
+ foreach (var x in GetInternalImages() ?? [])
+ {
2556
+ x.Dispose();
2557
+ }
2558
2559
_lazyImage = null;
2560
Binary = null;
0 commit comments