mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:30:38 +00:00
Fix bad return of proxy to user code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28556 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb3b2d3d19
commit
01249da35e
3 changed files with 2 additions and 7 deletions
|
@ -37,7 +37,6 @@
|
|||
{
|
||||
NSMutableString *_textChars;
|
||||
NSMutableArray *_infoArray;
|
||||
NSString *_textProxy;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -512,11 +512,7 @@ _attributesAtIndexEffectiveRange(
|
|||
|
||||
- (NSString*) string
|
||||
{
|
||||
if (_textProxy == nil)
|
||||
{
|
||||
_textProxy = RETAIN([_textChars immutableProxy]);
|
||||
}
|
||||
return _textProxy;
|
||||
return [[_textChars copy] autorelease];
|
||||
}
|
||||
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
|
@ -815,7 +811,6 @@ changeInLength: [aString length] - range.length];
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
TEST_RELEASE(_textProxy);
|
||||
RELEASE(_textChars);
|
||||
RELEASE(_infoArray);
|
||||
[super dealloc];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue