changeset 6301 | 1259736c0134 |
parent 6265 | a6944f94c19f |
child 6321 | 5a0416e5a6de |
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m Sun Nov 06 16:41:14 2011 +0100 +++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m Sun Nov 06 17:43:57 2011 +0100 @@ -54,6 +54,7 @@ #pragma mark - #pragma mark Spawner functions -(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary { + [self retain]; self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil; [self.stream open];