mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31778 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2fb610f22b
commit
5842007417
2 changed files with 14 additions and 6 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,15 +1,21 @@
|
|||
2010-12-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSString.m:
|
||||
([-stringByReplacingCharactersInRange:withString:]) fix memory leak.
|
||||
|
||||
2010-12-25 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
Improved autogsdoc to output symbols such as methods in their header
|
||||
declaration order along the gsdoc files.
|
||||
Useful for third-party tools that want to generate final documentation from
|
||||
the GSDoc ouput and how the original headers were organized.
|
||||
Useful for third-party tools that want to generate final documentation
|
||||
from the GSDoc ouput and how the original headers were organized.
|
||||
* Tools/autogsdoc.m:
|
||||
Added OrderedSymbolDeclarations.plist file output and cleaning.
|
||||
* Tools/AGSParser.h:
|
||||
* Tools/AGSParser.m:
|
||||
Added orderedSymbolDecls ivar.
|
||||
(-addOrderedSymbolDeclaration:toUnit:, -orderedSymbolDeclarationsByUnit): Added.
|
||||
(-addOrderedSymbolDeclaration:toUnit:,
|
||||
-orderedSymbolDeclarationsByUnit): Added.
|
||||
(-parseMethodsAsDeclarations:): Modified to call
|
||||
-addOrderedSymbolDeclaration:toUnit:.
|
||||
|
||||
|
@ -137,7 +143,6 @@
|
|||
* Source/NSURL.m (-resourceSpecifier): Separate behavior for
|
||||
file scheme vs other schemes.
|
||||
|
||||
>>>>>>> .r31774
|
||||
2010-12-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSCalendar.m: Fix to build with ICU 4.0
|
||||
|
|
|
@ -1804,9 +1804,12 @@ handle_printf_atsign (FILE *stream,
|
|||
- (NSString*) stringByReplacingCharactersInRange: (NSRange)aRange
|
||||
withString: (NSString*)by
|
||||
{
|
||||
id copy = [self mutableCopy];
|
||||
id copy;
|
||||
|
||||
copy = [[GSMutableStringClass allocWithZone: NSDefaultMallocZone()]
|
||||
initWithString: self];
|
||||
[copy replaceCharactersInRange: aRange withString: by];
|
||||
return [copy makeImmutableCopyOnFail: NO];
|
||||
return [[copy makeImmutableCopyOnFail: NO] autorelease];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue