project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.m
branchios-revival
changeset 11137 14f50dde3e8c
parent 10108 c68cf030eded
child 11240 57891137ffef
--- 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