{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/833","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/833/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/833/events","html_url":"https://github.com/ocornut/imgui/issues/833","id":177429756,"number":833,"title":"Careful when using ImGuiTextFilter with multiple instances.","user":{"login":"aegagros","id":885031,"avatar_url":"https://avatars1.githubusercontent.com/u/885031?v=4","gravatar_id":"","url":"https://api.github.com/users/aegagros","html_url":"https://github.com/aegagros","followers_url":"https://api.github.com/users/aegagros/followers","following_url":"https://api.github.com/users/aegagros/following{/other_user}","gists_url":"https://api.github.com/users/aegagros/gists{/gist_id}","starred_url":"https://api.github.com/users/aegagros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aegagros/subscriptions","organizations_url":"https://api.github.com/users/aegagros/orgs","repos_url":"https://api.github.com/users/aegagros/repos","events_url":"https://api.github.com/users/aegagros/events{/privacy}","received_events_url":"https://api.github.com/users/aegagros/received_events","type":"User","site_admin":false},"labels":[{"id":809120447,"url":"https://api.github.com/repos/ocornut/imgui/labels/multi%20contexts","name":"multi contexts","color":"fbca04","default":false},{"id":235124687,"url":"https://api.github.com/repos/ocornut/imgui/labels/tricks%20&%20tips","name":"tricks & tips","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-16T13:46:59Z","updated_at":"2018-05-02T13:25:57Z","closed_at":"2018-05-02T13:25:57Z","author_association":"NONE","body":"`ImGui::MemFree` depends on the currently active context, therefore when using `ImGui::CreateContext()` and `ImGui::DestroyContext()` make sure not to destroy the active context before any `ImGuiTextFilter` objects are destroyed. Situation gets more complex if the filter objects are static as in the examples.\n\nThis is due to the dependency of `ImGui::MemFree()` to the currently active context (`GImGui` variable), so it may apply to other heap-allocated objects that I am not aware of.\n\nMaybe relates to #591; didn't want to open a new issue for a warning but I thought I should share it with people, since it took me a few hours to determine why my application was segfaulting upon shutdown.\n"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/385976643","html_url":"https://github.com/ocornut/imgui/issues/833#issuecomment-385976643","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/833","id":385976643,"user":{"login":"ocornut","id":8225057,"avatar_url":"https://avatars2.githubusercontent.com/u/8225057?v=4","gravatar_id":"","url":"https://api.github.com/users/ocornut","html_url":"https://github.com/ocornut","followers_url":"https://api.github.com/users/ocornut/followers","following_url":"https://api.github.com/users/ocornut/following{/other_user}","gists_url":"https://api.github.com/users/ocornut/gists{/gist_id}","starred_url":"https://api.github.com/users/ocornut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocornut/subscriptions","organizations_url":"https://api.github.com/users/ocornut/orgs","repos_url":"https://api.github.com/users/ocornut/repos","events_url":"https://api.github.com/users/ocornut/events{/privacy}","received_events_url":"https://api.github.com/users/ocornut/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T13:25:57Z","updated_at":"2018-05-02T13:25:57Z","author_association":"OWNER","body":"Closing this old issue as the problem was solved by #1565, MemFree etc. are not context dependant."}}
{"actor":{"display_login":"ocornut"}}