mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-28 17:40:42 +00:00
Fix retain bug in NIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27772 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
180170e45a
commit
d5997b82fa
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-02-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/GSNibLoading.m (NSButtonImageSource -initWithCoder:): Add
|
||||||
|
missing retain of the named image.
|
||||||
|
|
||||||
2009-02-03 Richard Frith-Macdonald <rfm@gnu.org>
|
2009-02-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSTextContainer.m: Add some frame size checks.
|
* Source/NSTextContainer.m: Add some frame size checks.
|
||||||
|
|
|
@ -205,6 +205,8 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
@implementation NSView (NibCompatibility)
|
@implementation NSView (NibCompatibility)
|
||||||
- (void) _setWindow: (id) w
|
- (void) _setWindow: (id) w
|
||||||
{
|
{
|
||||||
|
// FIXME: Why is this an ASSIGN? The view is held by the window
|
||||||
|
// not the othe way around.
|
||||||
ASSIGN(_window,w);
|
ASSIGN(_window,w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -703,6 +705,7 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Should release self
|
||||||
return _realObject;
|
return _realObject;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -801,6 +804,7 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
|
|
||||||
- (id) initWithCoder: (NSCoder *)aCoder
|
- (id) initWithCoder: (NSCoder *)aCoder
|
||||||
{
|
{
|
||||||
|
// FIXME: Should release self
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1444,6 +1448,7 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
NSStringFromClass([coder class])];
|
NSStringFromClass([coder class])];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Needs to release self
|
||||||
return _template;
|
return _template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2044,7 +2049,7 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
return [NSImage imageNamed: imageName];
|
return RETAIN([NSImage imageNamed: imageName]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) encodeWithCoder: (NSCoder *)coder
|
- (void) encodeWithCoder: (NSCoder *)coder
|
||||||
|
@ -2208,6 +2213,7 @@ static BOOL _isInInterfaceBuilder = NO;
|
||||||
exponent: exponent
|
exponent: exponent
|
||||||
isNegative: negative];
|
isNegative: negative];
|
||||||
}
|
}
|
||||||
|
// FIXME: Needs to release self
|
||||||
return dn;
|
return dn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue