1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 04:25:14 +00:00

Fix memory leak in _PRINTSTRING

FontRenderTextUTF32 now frees the 'render' array, which is allocated for multi-character strings.
This commit is contained in:
Luke Ceddia 2016-01-28 13:58:08 +11:00
parent b0edf45d47
commit 976f757c2f

View file

@ -226,6 +226,7 @@ free(data1);
*out_y=h2; *out_y=h2;
//Note: '*out_x_pre_increment' is set above //Note: '*out_x_pre_increment' is set above
*out_x_post_increment=0; *out_x_post_increment=0;
if (codepoints > 1) free(render);
return 1; return 1;
} }