specta / expecta

A Matcher Framework for Objective-C/Cocoa
MIT License
1.59k stars 158 forks source link

Fix leaking block #157

Closed dhardiman closed 9 years ago

dhardiman commented 9 years ago

The _actualBlock value is never released in dealloc meaning everything captured in expect() is leaked.

orta commented 9 years ago

Interesting, looks legit to me :+1:

fredmajor commented 9 years ago

awesome! I saw that problem before in Instruments, but thought that it was just from my code.. (leaks)