Skip to content

Question about memory consumption. #2636

@ghost

Description

So lets say I run some imgui code like this

ImGui::Begin("Some Name");
// insert random imgui widgets and stuffs
ImGui::End();

But i only run this code temporarily and never run it again. Will the memory that was allocated for that window ever be freed and if so when does it get freed? I have a program that basically generates Window classes with random names and calls some imgui code then deletes these classes later but the same name can never be generated again so im getting memory being allocated (Although quite minimal usually like 50-100kb per window) for each named Window and it seemingly never gets freed. Is there a way to manually free memory for all windows ever created?

Im using the latest version of imgui with the glfw3 and opengl3 backends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions