The following line in freetype-2.1.10-r2.ebuild : use bindist || append-flags -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER cause memory leak in SDL_Render{UTF8|Text_* functions (example provided in attachement). Haven't track at all the 37 points where it appears in the sources.
Created attachment 99391 [details] Short example showing the memory leak
In the example if I replace the TTF_RenderText_Blended(font, my_order , black); by TTF_RenderText_Blended(font, "my_order" , black); the memory leak disappears
My fault, I've misstracked the bug (was 4 AM) the bug is located in freetype-2.1.10-security_batch-r1.patch
Is it in the security batch in combination with enabling or disabling the autohinter (or both) ? Since the security patches really is a combination of 2.1.10 with 2.2 I do not doubt it's not very clean code. I think this is one more reason to make 2.2 stable soon.
(In reply to comment #4) > Is it in the security batch in combination with enabling or disabling the > autohinter (or both) ? Leak appens when both security batch AND bindist are enabled (as far as I remember) (should be checked again with the example attached in Comment #1).
all archs now have freetype-2.3 stable.