Fonts, imgui_freetype: Fixed a warning and leak in IMGUI_ENABLE_FREETYPE_LUNASVG support. (#6842, #6591)

This commit is contained in:
ocornut
2023-09-20 11:31:28 +02:00
parent 6c022f9bf1
commit d6360c1ba9
2 changed files with 3 additions and 2 deletions

View File

@ -840,7 +840,7 @@ static FT_Error ImGuiLunasvgPortInit(FT_Pointer* _state)
static void ImGuiLunasvgPortFree(FT_Pointer* _state)
{
IM_DELETE(*_state);
IM_DELETE(*(LunasvgPortState*)_state);
}
static FT_Error ImGuiLunasvgPortRender(FT_GlyphSlot slot, FT_Pointer* _state)