project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6263 ec41637ceb64
parent 6247 6dfad55fd71c
child 6265 a6944f94c19f
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Nov 02 17:42:52 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m	Wed Nov 02 19:07:37 2011 +0100
@@ -414,6 +414,8 @@
     SDLNet_Quit();
 
     [pool release];
+
+    [self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
     // Invoking this method should be avoided as it does not give your thread a chance
     // to clean up any resources it allocated during its execution.
     //[NSThread exit];