浏览代码

ImDrawList: winodw draw lists destructed properly on Shutdown()

ocornut 10 年之前
父节点
当前提交
3e4841765d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui.h

+ 1 - 0
imgui.h

@@ -1041,6 +1041,7 @@ struct ImDrawList
     ImVector<ImVec2>        path;				// [Internal] current path building
 
     ImDrawList() { owner_name = NULL; Clear(); }
+    ~ImDrawList() { ClearFreeMemory(); }
     IMGUI_API void  Clear();
     IMGUI_API void  ClearFreeMemory();
     IMGUI_API void  PushClipRect(const ImVec4& clip_rect);          // Scissoring. The values are x1, y1, x2, y2.