mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix bad return value
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5975ccf95f
commit
4effabf601
2 changed files with 6 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-08-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSAttributedString.m: ([-string]) was returning proxy to
|
||||
mutable string ... bad if calling code does not expect it.
|
||||
|
||||
2009-08-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSURL.h:
|
||||
|
|
|
@ -79,7 +79,6 @@ static NSDictionary *blank;
|
|||
{
|
||||
NSMutableString *_textChars;
|
||||
NSMutableArray *_infoArray;
|
||||
NSString *_textProxy;
|
||||
}
|
||||
|
||||
- (id) initWithString: (NSString*)aString
|
||||
|
@ -593,11 +592,7 @@ SANITY();
|
|||
|
||||
- (NSString*) string
|
||||
{
|
||||
if (_textProxy == nil)
|
||||
{
|
||||
_textProxy = RETAIN([_textChars immutableProxy]);
|
||||
}
|
||||
return _textProxy;
|
||||
return AUTORELEASE([_textChars copy]);
|
||||
}
|
||||
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
|
@ -887,7 +882,6 @@ SANITY();
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
TEST_RELEASE(_textProxy);
|
||||
RELEASE(_textChars);
|
||||
RELEASE(_infoArray);
|
||||
[super dealloc];
|
||||
|
|
Loading…
Reference in a new issue