nverinaud / NVSlideMenuController

A slide menu done right for iOS.
MIT License
175 stars 33 forks source link

ViewController isn't released #18

Closed hacx closed 11 years ago

hacx commented 11 years ago

I added a breakpoint in dealloc of a new view controller i pushed to the menu controller and when i pushed another view controller it did not release the previous one.

nverinaud commented 11 years ago

I verified by disabling ARC in the basic demo project (commit 7691f8f) and the lib code is not leaking. Double check your code or better... use ARC! :)

hacx commented 11 years ago

I AM using ARC.

On Sun, Aug 11, 2013 at 10:26 AM, Nicolas VERINAUD <notifications@github.com

wrote:

I verified by disabling ARC in the basic demo project (commit 7691f8fhttps://github.com/nverinaud/NVSlideMenuController/commit/7691f8f) and the lib code is not leaking. Double check your code or better... use ARC! :)

— Reply to this email directly or view it on GitHubhttps://github.com/nverinaud/NVSlideMenuController/issues/18#issuecomment-22453778 .

nverinaud commented 11 years ago

So you might have a strong reference cycle (previously named retain cycle).

More info there: http://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW22