From f4072384e0979801102ab2a89946240903f74e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Mathe=CC=81?= Date: Tue, 3 Jun 2014 20:18:07 +0200 Subject: [PATCH] Fixed memory leaks introduced today --- Source/ETCollection+HOM.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/ETCollection+HOM.m b/Source/ETCollection+HOM.m index 71ef4ca..4726860 100644 --- a/Source/ETCollection+HOM.m +++ b/Source/ETCollection+HOM.m @@ -559,6 +559,10 @@ static inline void ETHOMMapCollectionWithBlockOrInvocationToTargetAsArray( { [alreadyMapped release]; } + if (mapInfo != nil) + { + [mapInfo release]; + } } static inline void ETHOMMapCollectionWithBlockOrInvocationToTarget( @@ -761,6 +765,10 @@ static inline void ETHOMFilterCollectionWithBlockOrInvocationAndTargetAndOrigina objectIndex++; } [content release]; + if (info != nil) + { + [info release]; + } } static inline void ETHOMFilterCollectionWithBlockOrInvocationAndTargetAndInvert( @@ -918,6 +926,10 @@ static inline void ETHOMZipCollectionsWithBlockOrInvocationAndTarget( { [alreadyMapped release]; } + if (mapInfo != nil) + { + [mapInfo release]; + } } /*