mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-28 01:20:55 +01:00
Internals: Missing IM_DELETE usage (#1517)
This commit is contained in:
parent
9cda86d55a
commit
d976e4ea23
@ -1403,10 +1403,7 @@ void ImFontAtlas::ClearTexData()
|
||||
void ImFontAtlas::ClearFonts()
|
||||
{
|
||||
for (int i = 0; i < Fonts.Size; i++)
|
||||
{
|
||||
Fonts[i]->~ImFont();
|
||||
ImGui::MemFree(Fonts[i]);
|
||||
}
|
||||
IM_DELETE(Fonts[i]);
|
||||
Fonts.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user