mikeash / MAKVONotificationCenter

Better key-value observing for Cocoa
Other
528 stars 84 forks source link

Fixed memory leak under ARC. #11

Closed insanehunter closed 12 years ago

insanehunter commented 12 years ago

Hi. I've discovered a memory leak caused by MAKVONotificationCenter in my project under ARC.

After a short investigation I've found that MAKVONotification has a property named newValue breaking the Cocoa naming scheme, so ARC assumes it returnes retained value.

I haven't tested my solution under Xcode versions other than 4.3 and with ARC off.

mikeash commented 12 years ago

Well, that's amusing.