mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 07:40:24 +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:
parent
b0edf45d47
commit
976f757c2f
|
@ -226,6 +226,7 @@ free(data1);
|
|||
*out_y=h2;
|
||||
//Note: '*out_x_pre_increment' is set above
|
||||
*out_x_post_increment=0;
|
||||
if (codepoints > 1) free(render);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue