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:
rfm 2009-08-27 14:54:58 +00:00
parent 6aecebbc9d
commit 0b6df761b7
2 changed files with 6 additions and 7 deletions

View file

@ -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];