mwaterfall/MWPhotoBrowser — Issue #19: Memory leak with ARC
Author: apocolipse
Created: 2011-12-14 22:49:30+00:00
State: open

Hi, i've adapted this for use with a program using ARC for ios5 with Xcode 4.2. This causes a memory leak somewhere (i haven't looked too deeply into it, its a bit puzzling). But looking at instruments i noticed 2 things
1. Memory used is huge? why is this? a 5mb image when loaded is 70mb almost, is this the decompressed data? any reason to do it this way?
2. ARC doesn't release any of that data when changing all [object release] to object = nil;, something's leaking but not showing up as a leak, so loading an image then going back retains the 70mb in memory, doubling when loading it again

The only solution i've found so far is just specifying -fno-objc-arc for each file, which works, but i'd still like to address a 5mb image taking 70mb in memory...