Skip to content

Commit

Permalink
Use malloc/free as NGAllocAtomic/NGFree are useless
Browse files Browse the repository at this point in the history
LIB_FOUNDATION_BOEHM_GC is never used and will never be
according to inverse-inc devs
  • Loading branch information
Enrique J. Hernández Blasco committed Nov 29, 2014
1 parent b5df88d commit 4ed6877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sope-core/NGExtensions/NGQuotedPrintableCoding.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ - (NSData *)dataByEncodingQuotedPrintable {

// length/64*3 should be plenty for soft newlines
desLen = (length + length/64) *3;
des = NGMallocAtomic(sizeof(char) * desLen);
des = malloc(sizeof(char) * desLen);

desLen = NGEncodeQuotedPrintable(bytes, length, des, desLen);

if ((int)desLen == -1)
{
NGFree(des);
free(des);
return nil;
}

Expand Down

0 comments on commit 4ed6877

Please sign in to comment.