facebook/pop — pull request #132 by karlvr (2014-07-18 06:58:07+00:00)
Title: Re-lock after removing existing animation in addAnimation:forObject:key

The existing code unlocks but doesn't re-lock in the event that we remove the existing animation and carry on to add the new one (falling through the if block). The code then goes on to attempt to unlock the lock, which isn't locked.

(At first I thought perhaps the unlock should only happen in the case that existingAnim == anim, but as removeAnimationForObject:key:cleanupDict: also locks it, I hope this is the right solution)