From c38002b50cacfbdad004a4a72e3b07b1ef651162 Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Fri, 24 Jun 2011 11:25:18 +0000 Subject: [PATCH] Fixed leak in ship group iteration. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4567 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/Core/OOShipGroup.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Core/OOShipGroup.m b/src/Core/OOShipGroup.m index cb04f3d3..a23efa3a 100644 --- a/src/Core/OOShipGroup.m +++ b/src/Core/OOShipGroup.m @@ -563,6 +563,14 @@ static id ShipGroupIterate(OOShipGroupEnumerator *enumerator) } +- (void) dealloc +{ + DESTROY(_group); + + [super dealloc]; +} + + - (id) nextObject { return ShipGroupIterate(self);