project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 6259 02765411a912
parent 6247 6dfad55fd71c
child 6260 025d50a6aeb0
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Mon Oct 31 21:04:18 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Wed Nov 02 09:24:18 2011 +0100
@@ -204,6 +204,7 @@
     [self.popupMenu performSelectorOnMainThread:@selector(dismiss) withObject:nil waitUntilDone:YES];
     [self.popoverController performSelectorOnMainThread:@selector(dismissPopoverAnimated:) withObject:nil waitUntilDone:YES];
     [self.view performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:YES];
+    [self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
 }
 
 #pragma mark -