From da15e63a46036568ad28aeba774ed492108cfe6b Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Thu, 24 Mar 2022 12:07:36 +0100 Subject: [PATCH] fix link problem --- src/libslic3r/Emboss.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index acebd93c8..7cb3543af 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -6,7 +6,6 @@ #define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation #include "imgui/imstb_truetype.h" // stbtt_fontinfo -#include "imgui/imgui.h" // free memory from stb #include "Utils.hpp" // ScopeGuard #include // CGAL project @@ -77,7 +76,7 @@ std::optional Private::get_glyph(const stbtt_fontinfo &font_info, stbtt_vertex *vertices; int num_verts = stbtt_GetGlyphShape(&font_info, glyph_index, &vertices); if (num_verts <= 0) return glyph; // no shape - ScopeGuard sg1([&vertices]() { ImGui::MemFree(vertices); }); + ScopeGuard sg1([&vertices]() { free(vertices); }); int *contour_lengths = NULL; int num_countour_int = 0; @@ -85,8 +84,8 @@ std::optional Private::get_glyph(const stbtt_fontinfo &font_info, flatness, &contour_lengths, &num_countour_int, font_info.userdata); if (!points) return glyph; // no valid flattening ScopeGuard sg2([&contour_lengths, &points]() { - ImGui::MemFree(contour_lengths); - ImGui::MemFree(points); + free(contour_lengths); + free(points); }); size_t num_contour = static_cast(num_countour_int);