diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index aaf1482..6330c5a 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -223,7 +223,7 @@ struct WindowContext { ~WindowContext() { delete fontTexture; for (int i = 0; i < ImGuiMouseCursor_COUNT; ++i) { - if (mouseCursorLoaded[i]) { + if (mouseCursors[i] != nullptr) { delete mouseCursors[i]; } }