project_files/HedgewarsMobile/Classes/LevelViewController.m
changeset 5208 878e551f0b4a
parent 4976 088d40d8aba2
child 5982 283be2ca54a7
--- a/project_files/HedgewarsMobile/Classes/LevelViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/LevelViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -13,7 +13,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 0211-1307, USA.
  *
  * File created on 02/04/2010.
  */
@@ -200,10 +200,10 @@
 }
 
 -(void) dealloc {
-    [levelArray release];
-    [levelSprites release];
-    [teamDictionary release];
-    [lastIndexPath release];
+    releaseAndNil(levelArray);
+    releaseAndNil(levelSprites);
+    releaseAndNil(teamDictionary);
+    releaseAndNil(lastIndexPath);
     [super dealloc];
 }