Stop using OFAutoreleasePool

This commit is contained in:
Jonathan Schleifer 2017-07-23 13:35:12 +02:00
parent cb5f6bfe40
commit 631b4e1a9d
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
7 changed files with 54 additions and 54 deletions

View file

@ -70,7 +70,7 @@
{
XMPPIQ *ret = [XMPPIQ IQWithType: @"error"
ID: [self ID]];
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
void *pool = objc_autoreleasePoolPush();
OFXMLElement *error = [OFXMLElement elementWithName: @"error"
namespace: XMPP_NS_CLIENT];
@ -86,7 +86,7 @@
[ret setTo: [self from]];
[ret setFrom: nil];
[pool release];
objc_autoreleasePoolPop(pool);
return ret;
}