~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leaks in the new error return from modinv.
[sgt/putty]
/
macosx
/
osxwin.m
diff --git
a/macosx/osxwin.m
b/macosx/osxwin.m
index
169ae64
..
b58742d
100644
(file)
--- a/
macosx/osxwin.m
+++ b/
macosx/osxwin.m
@@
-957,7
+957,7
@@
void palette_set(void *frontend, int n, int r, int g, int b)
if (n >= 16)
n += 256 - 16;
- if (n > NALLCOLOURS)
+ if (n >
=
NALLCOLOURS)
return;
[win setColour:n r:r/255.0 g:g/255.0 b:b/255.0];