Opened 8 years ago

Closed 8 years ago

#11782 closed defect (fixed)

Memory leak in

Reported by: Sonicadvance1 Owned by: csomor
Priority: normal Milestone:
Component: old wxOSX/Carbon port Version:
Keywords: leak Cc:
Blocked By: Blocking:
Patch: no


There is a memory leak in in the function
void wxNativeFontInfo::OSXValidateNSFontDescriptor()
Don't know which line causes it, but it's there.

Change History (3)

comment:1 Changed 8 years ago by vadz

  • Component changed from wxOSX-Cocoa to wxOSX-Carbon

The only possibility for a leak that I see here is that NSFontDescriptor itself is leaked. Maybe we shouldn't call wxMacCocoaRetain(desc); on it after creation? It's not clear to me why do we do it.

Could you please test what happens if you remove this line?

comment:2 Changed 8 years ago by csomor

  • Owner set to csomor
  • Status changed from new to accepted

no that one is ok (released later, has to be retained therefore), but the dictionary is leaked, it must use a class method which uses autorelease, I'll fix that



comment:3 Changed 8 years ago by SC

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [63621]) fixing leak, fixes #11782

Note: See TracTickets for help on using tickets.