Skip to content

Commit

Permalink
Fixed memory leaks introduced today
Browse files Browse the repository at this point in the history
  • Loading branch information
qmathe committed Jun 3, 2014
1 parent 0eeebd3 commit f407238
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Source/ETCollection+HOM.m
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,10 @@ static inline void ETHOMMapCollectionWithBlockOrInvocationToTargetAsArray(
{
[alreadyMapped release];
}
if (mapInfo != nil)
{
[mapInfo release];
}
}

static inline void ETHOMMapCollectionWithBlockOrInvocationToTarget(
Expand Down Expand Up @@ -761,6 +765,10 @@ static inline void ETHOMFilterCollectionWithBlockOrInvocationAndTargetAndOrigina
objectIndex++;
}
[content release];
if (info != nil)
{
[info release];
}
}

static inline void ETHOMFilterCollectionWithBlockOrInvocationAndTargetAndInvert(
Expand Down Expand Up @@ -918,6 +926,10 @@ static inline void ETHOMZipCollectionsWithBlockOrInvocationAndTarget(
{
[alreadyMapped release];
}
if (mapInfo != nil)
{
[mapInfo release];
}
}

/*
Expand Down

0 comments on commit f407238

Please sign in to comment.