mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
ImVector: added clear_delete(), clear_destruct() helpers.
This commit is contained in:
parent
61f4aec868
commit
d0c6dd9baf
4 changed files with 14 additions and 22 deletions
|
|
@ -688,8 +688,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u
|
|||
// Cleanup
|
||||
for (int buf_i = 0; buf_i < buf_bitmap_buffers.Size; buf_i++)
|
||||
IM_FREE(buf_bitmap_buffers[buf_i]);
|
||||
for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
|
||||
src_tmp_array[src_i].~ImFontBuildSrcDataFT();
|
||||
src_tmp_array.clear_destruct();
|
||||
|
||||
ImFontAtlasBuildFinish(atlas);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue