BugsBiteBugs / sqlitepersistentobjects

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

Memory leak #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Method +(NSDictionary *)propertiesWithEncodedTypes in class 
SQLitePersistentObject has a 
memory leak.

You must free the array returned from the following call:
   objc_property_t *propList = class_copyPropertyList([self class], &outCount);

Adding the following line at the end of the method solves the problem:
      free(propList);

Cool library by the way. Thanks for doing this.

Original issue reported on code.google.com by ryan.bru...@gmail.com on 23 Oct 2008 at 3:28

GoogleCodeExporter commented 9 years ago
Thanks for the report. I've made the change and it's going in with the next 
commit.

Original comment by vernix on 24 Oct 2008 at 5:57

GoogleCodeExporter commented 9 years ago
Here's a patch against revision 60 (seems like it never made it into the repo).

Original comment by li...@wzph.com on 28 Jan 2009 at 6:42

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I have incorporated your patch

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

GoogleCodeExporter commented 9 years ago
Thanks, I have incorporated your patch

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