Skip to content

Commit 5eeeb1f

Browse files
committed
fix double dispose from finalizer
1 parent af2b87f commit 5eeeb1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Intersect.Client.Framework/Graphics/GameTexture.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,11 @@ private void EmitUnloaded()
418418

419419
private void Dispose(bool disposing)
420420
{
421+
if (!disposing && _disposed)
422+
{
423+
return;
424+
}
425+
421426
ObjectDisposedException.ThrowIf(_disposed, this);
422427

423428
_disposed = true;

0 commit comments

Comments
 (0)