BugsBiteBugs / sqlitepersistentobjects

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

memory leak after calling class_copyPropertyList? #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not even sure about this one and don't have the knowledge to validate
my claim; Obj-C is new to me!

Shouldn't you call free(propList) in SQLitePersistentObject.m
 +(NSDictionary *)propertiesWithEncodedTypes after using
class_copyPropertyList?

The Apple doc says something about calling free() on the array after using
class_copyPropertyList.
(http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ObjCRuntimeRef/Referen
ce/reference.html#//apple_ref/c/func/class_copyPropertyList)

If I'm wrong, well, I know I still have a lot to learn !
Great code,

-MR.

Original issue reported on code.google.com by mrich316@gmail.com on 15 Jan 2009 at 7:20

GoogleCodeExporter commented 9 years ago
Oups, I just found out that it will be corrected (Issue 9).
Sorry about that, a quick search on copyPropertyList did not yield any result.

My bad.

Original comment by mrich316@gmail.com on 15 Jan 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Dup of Issue 9, fix added to codeline today.

Original comment by jeff.lam...@gmail.com on 19 Feb 2009 at 1:30