--- a/project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m Tue Aug 18 00:51:23 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m Tue Aug 18 01:08:21 2015 +0200
@@ -82,7 +82,8 @@
}
-(void) serverProtocol {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ @autoreleasepool {
+
IPaddress ip;
BOOL clientQuit = NO;
char *buffer = (char *)malloc(sizeof(char)*BUFFER_SIZE);
@@ -206,7 +207,7 @@
SDLNet_TCP_Close(self.ssd);
SDLNet_Quit();
- [pool release];
+ }
}
@end