mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Correct problems found by valgrind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36188 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
28ff5825aa
commit
0561a46d2f
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-02-22 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m (-initWithCoder:),
|
||||
* Source/NSBitmapImageRep.m (-_convertToFormatBitsPerSample:...):
|
||||
Correct problem found by valgrind.
|
||||
|
||||
2013-02-22 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSToolTips.m
|
||||
|
|
|
@ -2258,7 +2258,7 @@ _set_bit_value(unsigned char *base, long msb_off, int bit_width,
|
|||
if (alpha)
|
||||
{
|
||||
// Scale from [0.0 ... 1.0]
|
||||
for (i = 0; i < _numColors; i++)
|
||||
for (i = 0; i < spp - 1; i++)
|
||||
{
|
||||
iv[i] = fv[i] * scale;
|
||||
}
|
||||
|
|
|
@ -5379,7 +5379,7 @@ current key view.<br />
|
|||
aSize = [aDecoder decodeSize];
|
||||
[self setMaxSize: aSize];
|
||||
|
||||
[aDecoder decodeValueOfObjCType: @encode(int)
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSInteger)
|
||||
at: &level];
|
||||
[self setLevel: level];
|
||||
|
||||
|
|
Loading…
Reference in a new issue