Search code examples
delphifiremonkey

Why doesn't FMX.Canvas.Mac ever call CFRelease after calling CFNumberCreate?


According to this Apple documentation, CFNumberCreate follows The Create Rule. However, whereas numerous CF..Create calls in FMX.Canvas.Mac are followed by CFRelease calls on the returned objects, CFNumberCreate calls are not. Why is this?


Solution

  • It's a bug in FMX.Canvas.Mac. A call to CFNumberCreate needs to be balanced with a call to CFRelease.

    Bug report: RSP-20924