On Fri Jun 14 19:01:33 2024 +0000, Brendan Shanks wrote:
Not a big deal, but you could avoid needing the destroy callback by using a CFMutableData instead of malloc(). Create a CFMutableData, set the length, set *bits to the byte ptr, create the CGDataProvider with the CFMutableData, then release it.
Done.