Prevent a possible leak.

This commit is contained in:
Jonathan Schleifer 2011-09-09 16:42:39 +02:00
parent f5559cb3e5
commit 2901e13cd5

View file

@ -409,7 +409,7 @@
[hashI updateWithBuffer: [data cArray]
length: [data itemSize] * [data count]];
hashO = [[hashType alloc] init];
hashO = [[[hashType alloc] init] autorelease];
[hashO updateWithBuffer: (char*)kO
length: blockSize];
[hashO updateWithBuffer: (char*)[hashI digest]
@ -419,10 +419,10 @@
[self freeMemory: kO];
}
[hashO retain];
[pool release];
[hashO autorelease];
return [hashO digest];
return [[hashO autorelease] digest];
}
- (OFDataArray*)XMPP_hiWithData: (OFDataArray *)str