-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freetype + lunasvg, ImGui compilation error #6842
Comments
You'll need to move this to discussions if you want an answer. |
Looks like GCC introducing a new over-zealous warning with calling delete on a |
The correct call would be |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
My Issue/Question:
Hi,
I'm trying to make svg font work. I've followed the instruction here: https://github.com/ocornut/imgui/tree/master/misc/freetype. I have Freetype 2.13 installed on my system, and I've added the latest version of lunasvg (v.2.3.8) to my project.
If I define IMGUI_ENABLE_FREETYPE_LUNASVG, then I get the following compilation error (on gcc 11.3):
If I look at the line in
imgui_freetype.cpp
, I see that:If I replace
IM_DELETE
byIM_FREE
, the code compiles, because_state
is not an object. However, I'm not so familiar with theimgui_freetype.cpp
, so I'm not sure if this introduces a memory leak. Should I make a PR for the correction ?The text was updated successfully, but these errors were encountered: