mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Simplify memory management/initialisation for strings and data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7621 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef6773dfb5
commit
bcb5c31bce
12 changed files with 248 additions and 608 deletions
|
@ -168,9 +168,7 @@ encodeBase64(NSData *source)
|
|||
}
|
||||
|
||||
return [[NSGCString allocWithZone: NSDefaultMallocZone()]
|
||||
initWithCStringNoCopy: dBuf
|
||||
length: destlen-1
|
||||
fromZone: NSDefaultMallocZone()];
|
||||
initWithCStringNoCopy: dBuf length: destlen-1];
|
||||
}
|
||||
|
||||
static NSString*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue