BugsBiteBugs / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

SQLitePersistentObject may has a memory leak #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SQLitePersistentObject.m Line 250:

            id oneItem = [objectMap objectForKey:memoryMapKey];
            if (oneItem)
            {
                [ret addObject:[oneItem retain]];
                continue;
            }

ret is a NSArray, so [oneItem retain] maybe cause an memory leak.

Original issue reported on code.google.com by ohdarlin...@gmail.com on 16 Nov 2010 at 1:05