Minor retain/release fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6811 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-06-26 21:29:47 +00:00
parent dd0d602d87
commit 0177742a92
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-06-26 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSAttributedString.m: attachmentString() - retain newly
created string.
2000-06-26 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSTextAttachment.h

View file

@ -94,8 +94,7 @@ static NSString *attachmentString()
if (attach == nil)
{
unichar ch = NSAttachmentCharacter;
attach = [NSString stringWithCharacters: &ch
length: 1];
attach = RETAIN([NSString stringWithCharacters: &ch length: 1]);
}
return attach;
}