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 2000-06-26 21:29:47 +00:00
parent 2a0176ab77
commit 1739abf2af
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> 2000-06-26 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSTextAttachment.h * Headers/AppKit/NSTextAttachment.h

View file

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