Skip to content

Conversation

dreampiggy
Copy link
Collaborator

This PR fix the 3 issues @wensbo reported

  1. CFDataCreateWithBytesNoCopy for ICC Profile cause issue because of ColorSync cache system
  2. free on null pointer in error handing cause crash
  3. AVIF encoding cause memory leak of avifImage

image

…er with `CFDataCreateWithBytesNoCopy` may fail on some cases

Always copy the data buffer via `CFDataCreate`
@dreampiggy dreampiggy force-pushed the fix_copy_data_buffer_threads branch from ed6e24f to a438aed Compare August 11, 2022 09:56
This because of some error handle does not release the buffer
@dreampiggy dreampiggy force-pushed the fix_copy_data_buffer_threads branch from a438aed to d5b9708 Compare August 11, 2022 09:58
This was linked to issues Aug 11, 2022
@dreampiggy dreampiggy merged commit 27385c6 into master Aug 11, 2022
@dreampiggy dreampiggy deleted the fix_copy_data_buffer_threads branch August 11, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

memory leak create_icc: CGColorSyncTransformCacheGetRetained failed
1 participant