Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 0d7cb52

Browse files
committed
don't autorelease strings on GNUstep that are created with CFStringCreateWithBytes() on macOS
1 parent 47c16df commit 0d7cb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MPWMAXParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ -(void)clearAttributes
968968
for (int i=0;i< len;i++ ) {
969969
if ( start[i] & 128 ) {
970970
#if GS_API_LATEST
971-
return [[[NSString alloc] initWithBytes:start length:len encoding:cfDataEncoding] autorelease];
971+
return [[NSString alloc] initWithBytes:start length:len encoding:cfDataEncoding];
972972

973973
#else
974974
return (id)CFStringCreateWithBytes(NULL, (const unsigned char*)start, len, (CFStringEncoding)cfDataEncoding, NO);

0 commit comments

Comments
 (0)