Summary: | FcConfigSetCurrent doesn't call FcConfigReference() in new config | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Behdad Esfahbod <freedesktop> |
Component: | library | Assignee: | Akira TAGOH <akira> |
Status: | RESOLVED FIXED | QA Contact: | Behdad Esfahbod <freedesktop> |
Severity: | normal | ||
Priority: | medium | CC: | akira, fontconfig-bugs, freedesktop |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Behdad Esfahbod
2014-08-10 21:19:01 UTC
I agree with you however it causes introducing the memory leak on applications after fixing it, which uses FcConfigSetCurrent() right? That's why I said I "*think*". That API doesn't have too many users, and a small leak that apps can fix in the future is better than the broken behavior it currently has. gotcha. makes sense. Fixed in git. Please add a note to documentation saying that this function retrains a reference including the version number that this changed. Alternative would have been to document it as claiming ownership of the referenced passed in. I'm not sure which one I actually prefer! At any rate, as long as it's documented, it's ok. Thanks. done. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.