mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 01:21:05 +00:00
Add missing retain in keyed decoding case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25804 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8aa94bf96c
commit
d83064bf0e
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2007-12-30 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSFont.m (-initWithCoder:): Add missing RETAIN.
|
||||||
|
|
||||||
2007-12-25 Fred Kiefer <FredKiefer@gmx.de>
|
2007-12-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Headers/AppKit/NSMenu.h:
|
* Headers/AppKit/NSMenu.h:
|
||||||
|
|
|
@ -1284,7 +1284,7 @@ static BOOL flip_hack;
|
||||||
NSString *name = [aDecoder decodeObjectForKey: @"NSName"];
|
NSString *name = [aDecoder decodeObjectForKey: @"NSName"];
|
||||||
float size = [aDecoder decodeFloatForKey: @"NSSize"];
|
float size = [aDecoder decodeFloatForKey: @"NSSize"];
|
||||||
|
|
||||||
RELEASE(self);
|
DESTROY(self);
|
||||||
if ([aDecoder containsValueForKey: @"NSfFlags"])
|
if ([aDecoder containsValueForKey: @"NSfFlags"])
|
||||||
{
|
{
|
||||||
int flags = [aDecoder decodeIntForKey: @"NSfFlags"];
|
int flags = [aDecoder decodeIntForKey: @"NSfFlags"];
|
||||||
|
@ -1303,7 +1303,7 @@ static BOOL flip_hack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self = [NSFont fontWithName: name size: size];
|
self = RETAIN([NSFont fontWithName: name size: size]);
|
||||||
if (self == nil)
|
if (self == nil)
|
||||||
{
|
{
|
||||||
self = RETAIN([NSFont systemFontOfSize: size]);
|
self = RETAIN([NSFont systemFontOfSize: size]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue