Please sign in to comment.
Fix memory leaks in Hackbook
Summary: 1) img was alloc'ed and never released while uploading a photo 2) alertview was alloc'ed and never released 3) friendswithapp was alloc'ed twice and never released, updated the logic to use obj c syntax 4) UIGraphicsGetImageFromCurrentImageContext() returns an autoreleased imageView - retaining it is the incorrect solution. See http://stackoverflow.com/questions/1529667/memory-allocation-and-release-for-uiimage-in-iphone Test Plan: Run Hackbook in the profiler and verify no memory leaks when loading userpic from the graph api Upload a photo, verify no longer leaks View friends with app, verify no longer leaks Pop the alertview and verify no longer leaks Reviewers: jacl, caabernathy, mattwkelly, selekman Reviewed By: jacl Differential Revision: https://phabricator.fb.com/D430905 Task ID: 980129
- Loading branch information...
Showing with 10 additions and 8 deletions.