浏览代码

Internals: Missing IM_DELETE usage (#1517)

omar 7 年之前
父节点
当前提交
d976e4ea23
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      imgui_draw.cpp

+ 1 - 4
imgui_draw.cpp

@@ -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();
 }