dep/imgui: Fix memory leak in imgui_freetype

Only once on font load, but still a leak.
This commit is contained in:
Stenzek
2025-11-21 12:28:05 +10:00
parent e9966cfed0
commit b4900c90ed

View File

@@ -198,6 +198,8 @@ bool ImGui_ImplFreeType_FontSrcData::InitFont(FT_Library ft_library, ImFontConfi
VarDesignCoords = nullptr; VarDesignCoords = nullptr;
VarDesignNumAxis = 0; VarDesignNumAxis = 0;
} }
FT_Done_MM_Var(ft_library, mmvar);
} }
// Convert to FreeType flags (NB: Bold and Oblique are processed separately) // Convert to FreeType flags (NB: Bold and Oblique are processed separately)