Skip to content

Commit

Permalink
Fix image loaded as palette not releasing file handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Oct 11, 2024
1 parent eaa4457 commit ee09595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BinxelviewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ bool loadPalette(string path, bool image, bool sixbit_vga)
if (cols.Length < 1)
{
palette_error = "Image does not contain a palette.";
img.Dispose();
return false;
}

Expand All @@ -1083,6 +1084,7 @@ bool loadPalette(string path, bool image, bool sixbit_vga)
Color c = cols[i];
setPalette(i, c.R, c.G, c.B);
}
img.Dispose();
return true;
}

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Changes
- Indicate hexadecimal position with bold font.
- Command line arguments for options.
- Default palette ability.
- Fix image loaded as palette not releasing file handle.

1.5.0.0 (2020-07-31)
- Twiddle option for inspecting textures stored with morton ordering of pixels.
Expand Down

0 comments on commit ee09595

Please sign in to comment.