Browse Source

Internals: Missing IM_DELETE usage (#1517)

omar 7 years ago
parent
commit
d976e4ea23
1 changed files with 1 additions and 4 deletions
  1. 1 4
      imgui_draw.cpp

+ 1 - 4
imgui_draw.cpp

@@ -1403,10 +1403,7 @@ void    ImFontAtlas::ClearTexData()
 void    ImFontAtlas::ClearFonts()
 void    ImFontAtlas::ClearFonts()
 {
 {
     for (int i = 0; i < Fonts.Size; i++)
     for (int i = 0; i < Fonts.Size; i++)
-    {
-        Fonts[i]->~ImFont();
-        ImGui::MemFree(Fonts[i]);
-    }
+        IM_DELETE(Fonts[i]);
     Fonts.clear();
     Fonts.clear();
 }
 }