Delete font clear pointer in ImGui state to get a clear crasah instead of a dangling pointer. #181

This commit is contained in:
ocornut
2015-04-02 17:48:22 +01:00
parent b61b311772
commit 503b8c20de
2 changed files with 11 additions and 1 deletions

View File

@ -998,7 +998,7 @@ struct ImFont
// Methods
IMGUI_API ImFont();
IMGUI_API ~ImFont() { Clear(); }
IMGUI_API ~ImFont();
IMGUI_API void Clear();
IMGUI_API void BuildLookupTable();
IMGUI_API const Glyph* FindGlyph(unsigned short c) const;