Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Only null out the nsimage when disposing is true
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall-lerner committed Mar 13, 2023
1 parent 43c8261 commit 9675cf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Xwt.XamMac/Xwt.Mac/ImageViewBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public void SetImage (ImageDescription image)

protected override void Dispose (bool disposing)
{
nsImage = null;
if (disposing)
nsImage = null;

base.Dispose(disposing);
}
}
Expand Down

0 comments on commit 9675cf2

Please sign in to comment.